Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread David James
If Guiseppe is right that variable expansion in the SLD file is not
supported by QGIS, then the set of SLD files you pointed me at will have
the same problem as the OS MM SLD's (the topographicarea file references
osmmstyle_name instead of os_cat and contains a similar construct:
xlink:href="osmmsymbols/${osmmstyle_name}.svg"/>)

Perhaps I need to ask on the developers' list if this is likely to be
supported in the future.

I've not had a chance to try the QML files yet.

David

On 01/09/2014 11:26, McDonaldR wrote:
>
> You can grab QGIS styles for OSMM here:
>
>  
>
> https://github.com/mixedbredie/QGIS-styles/tree/master/OSMM
>
>  
>
> and here:
>
>  
>
> https://github.com/QGIS-UK/Styles/tree/master/OSMM
>
>  
>
> The QML and SLDs depend on the schema of the source data (GML,
> shapefiles) and how they are loaded into the database (Loader!,
> GoLoader, Productivity Suite).  Usually descriptiveterm,
> descriptivegroup and make are used for the styles.
>
>  
>
> These SLD files for OSMM are based on the OS styles but without the
> reference to os_cat field.
>
>  
>
> https://github.com/mixedbredie/Geoserver-OS-SLDs
>
>  
>
> hope that helps a bit.
>
>  
>
> Ross
>
>  
>
> *From:*qgis-user-boun...@lists.osgeo.org
> [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf Of *Thomas Colley
> *Sent:* 01 September 2014 09:35
> *To:* Giuseppe Sucameli; David James
> *Cc:* qgis-user ML
> *Subject:* Re: [Qgis-user] Help with Ordnance Survey SLD's for OS
> Mastermap
>
>  
>
> os_cat is a field used for styling in OS layers. The complication is
> (at least last I checked) the field doesn’t exist in the data as
> shipped. There are some SQL files on the OS website for creating
> os_cat (calculated from a combination of other fields) in PostGIS, but
> I’m not sure how that would be applied to shapefiles.
>
>  
>
> I’m sure that OS have released proper QGIS Style Files now as well as
> SLDs. I can’t find them at the minute (too early on a Monday morning)
> but I’ll let you know when I do.
>
>  
>
> Cheers
>
>
> Tom
>
>  
>
> *From:*qgis-user-boun...@lists.osgeo.org
> <mailto:qgis-user-boun...@lists.osgeo.org>
> [mailto:qgis-user-boun...@lists.osgeo.org]
> <mailto:[mailto:qgis-user-boun...@lists.osgeo.org]> *On Behalf Of
> *Giuseppe Sucameli
> *Sent:* 01 September 2014 08:34
> *To:* David James
> *Cc:* qgis-user ML
> *Subject:* Re: [Qgis-user] Help with Ordnance Survey SLD's for OS
> Mastermap
>
>  
>
> Hi David,
> IIRC that kind of variables are not supported by QGIS neither by the
> SLD standard.
>
> You must replace it with the correct SVG filename.
>
> Anyway, what is "os_cat" supposed to be? Is it a layer's field name?
>
> Regards.
>
> Sent from mobile. Sorry for being short.
> --
> Giuseppe Sucameli
>
> Il 01/set/2014 00:01 "David James"  <mailto:da...@djames.org.uk>> ha scritto:
>
> I'm very much a beginner with QGIS and I'm trying to run long before I
> can crawl ...
>
> I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
> (from
> http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip)
> to style the sample OS MasterMap data.
>
> Initially, I found that when I loaded the SLD file into QGIS, only the
> first rule was being picked up, but eventually I found tjmgis's answer
> in
> http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
> (that all the  and  except the
> first and the last in the SLD files need removing) and now I'm making
> progress.
>
> I'm struggling with one problem: there's a rule called
> Vegetation (pattern) - 1:35 to 1:3,496
> which specifies the SVG file as
> xlink:href="osmmsymbols/${os_cat}.svg"/>
>
> QGIS is showing me question marks in these areas (which I think means it
> is not finding the SVG file).
>
> Does QGIS support this use of ${os_cat} (and if so, what do I need to do
> to make it work?) or do I have to replicate the rule with explicitly
> named SVG files for all the different vegetation types?
>
> David
>
> --
> David James
> da...@djames.org.uk <mailto:da...@djames.org.uk>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org <mailto:Qgis-user@lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>  
>
> This message is strictly confidential. If you have received this in
> error, please inform the sender and remove it 

Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread Jukka Rahkonen
David James  writes:

> 
> I should perhaps have said that I have the OS MM sample data in a PostGIS
> database.
> 
> The OS distributes SQL files with the SLD dfiles, but those files are
> targetted at an Oracle database.
> 
> I found similar SQL scripts targetted at PostGIS at
> https://gist.github.com/tjmgis/6184358.

Links in this mail from Geoserver-users may also be useful

http://osgeo-org.1560.x6.nabble.com/Release-SLD-s-for-Ordnance-Survey-data-td5157642.html

-Jukka Rahkonen-

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread David James
Thank you.

I'll grab those and see how I get on with them.

David

> You can grab QGIS styles for OSMM here:
>
> https://github.com/mixedbredie/QGIS-styles/tree/master/OSMM
>
> and here:
>
> https://github.com/QGIS-UK/Styles/tree/master/OSMM
>
> The QML and SLDs depend on the schema of the source data (GML, shapefiles)
> and how they are loaded into the database (Loader!, GoLoader, Productivity
> Suite).  Usually descriptiveterm, descriptivegroup and make are used for
> the styles.
>
> These SLD files for OSMM are based on the OS styles but without the
> reference to os_cat field.
>
> https://github.com/mixedbredie/Geoserver-OS-SLDs
>
> hope that helps a bit.
>
> Ross
>
> From: qgis-user-boun...@lists.osgeo.org
> [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Thomas Colley
> Sent: 01 September 2014 09:35
> To: Giuseppe Sucameli; David James
> Cc: qgis-user ML
> Subject: Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap
>
> os_cat is a field used for styling in OS layers. The complication is (at
> least last I checked) the field doesn’t exist in the data as shipped.
> There are some SQL files on the OS website for creating os_cat (calculated
> from a combination of other fields) in PostGIS, but I’m not sure how
> that would be applied to shapefiles.
>
> I’m sure that OS have released proper QGIS Style Files now as well as
> SLDs. I can’t find them at the minute (too early on a Monday morning)
> but I’ll let you know when I do.
>
> Cheers
>
> Tom
>
> From:
> qgis-user-boun...@lists.osgeo.org<mailto:qgis-user-boun...@lists.osgeo.org>
> [mailto:qgis-user-boun...@lists.osgeo.org]<mailto:[mailto:qgis-user-boun...@lists.osgeo.org]>
> On Behalf Of Giuseppe Sucameli
> Sent: 01 September 2014 08:34
> To: David James
> Cc: qgis-user ML
> Subject: Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap
>
>
> Hi David,
> IIRC that kind of variables are not supported by QGIS neither by the SLD
> standard.
>
> You must replace it with the correct SVG filename.
>
> Anyway, what is "os_cat" supposed to be? Is it a layer's field name?
>
> Regards.
>
> Sent from mobile. Sorry for being short.
> --
> Giuseppe Sucameli
> Il 01/set/2014 00:01 "David James"
> mailto:da...@djames.org.uk>> ha scritto:
> I'm very much a beginner with QGIS and I'm trying to run long before I
> can crawl ...
>
> I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
> (from
> http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip)
> to style the sample OS MasterMap data.
>
> Initially, I found that when I loaded the SLD file into QGIS, only the
> first rule was being picked up, but eventually I found tjmgis's answer
> in
> http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
> (that all the  and  except the
> first and the last in the SLD files need removing) and now I'm making
> progress.
>
> I'm struggling with one problem: there's a rule called
> Vegetation (pattern) - 1:35 to 1:3,496
> which specifies the SVG file as
> xlink:href="osmmsymbols/${os_cat}.svg"/>
>
> QGIS is showing me question marks in these areas (which I think means it
> is not finding the SVG file).
>
> Does QGIS support this use of ${os_cat} (and if so, what do I need to do
> to make it work?) or do I have to replicate the rule with explicitly
> named SVG files for all the different vegetation types?
>
> David
>
> --
> David James
> da...@djames.org.uk<mailto:da...@djames.org.uk>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> This message is strictly confidential. If you have received this in error,
> please inform the sender and remove it from your system. If received in
> error you may not copy, print, forward or use it or any attachment in any
> way. This message is not capable of creating a legal contract or a binding
> representation and does not represent the views of Angus Council. Emails
> may be monitored for security and network management reasons.  Messages
> containing inappropriate content may be intercepted. Angus Council does
> not accept any liability for any harm that may be caused to the recipient
> system or data on it by this message or any attachment.
>


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread David James
I should perhaps have said that I have the OS MM sample data in a PostGIS
database.

The OS distributes SQL files with the SLD dfiles, but those files are
targetted at an Oracle database.

I found similar SQL scripts targetted at PostGIS at
https://gist.github.com/tjmgis/6184358.

The current OS MasterMap sample data appears to be slightly different to
what it was when tjmgis posted these scripts a year ago - the field
contents in the descriptivegroup and descriptiveterm columns in all except
the topographicarea table are no longer wrapped in braces and quotation
marks ({"xxx"}).


I couldn't find QGIS Style Sheets on the OS web-site for OS MasterMap -
they are available for various other products. If you find them, I'd be
very interested in a link.


> os_cat is a field used for styling in OS layers. The complication is (at
> least last I checked) the field doesn’t exist in the data as shipped.
> There are some SQL files on the OS website for creating os_cat (calculated
> from a combination of other fields) in PostGIS, but I’m not sure how
> that would be applied to shapefiles.
>
>
>
> I’m sure that OS have released proper QGIS Style Files now as well as
> SLDs. I can’t find them at the minute (too early on a Monday morning)
> but I’ll let you know when I do.
>
>
>
> Cheers
>
>
> Tom
>
>
>
> From: qgis-user-boun...@lists.osgeo.org
> [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Giuseppe Sucameli
> Sent: 01 September 2014 08:34
> To: David James
> Cc: qgis-user ML
> Subject: Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap
>
>
>
> Hi David,
> IIRC that kind of variables are not supported by QGIS neither by the SLD
> standard.
>
> You must replace it with the correct SVG filename.
>
> Anyway, what is "os_cat" supposed to be? Is it a layer's field name?
>
> Regards.
>
> Sent from mobile. Sorry for being short.
> --
> Giuseppe Sucameli
>
> Il 01/set/2014 00:01 "David James"  ha scritto:
>
> I'm very much a beginner with QGIS and I'm trying to run long before I
> can crawl ...
>
> I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
> (from
> http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip)
> to style the sample OS MasterMap data.
>
> Initially, I found that when I loaded the SLD file into QGIS, only the
> first rule was being picked up, but eventually I found tjmgis's answer
> in
> http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
> (that all the  and  except the
> first and the last in the SLD files need removing) and now I'm making
> progress.
>
> I'm struggling with one problem: there's a rule called
> Vegetation (pattern) - 1:35 to 1:3,496
> which specifies the SVG file as
> xlink:href="osmmsymbols/${os_cat}.svg"/>
>
> QGIS is showing me question marks in these areas (which I think means it
> is not finding the SVG file).
>
> Does QGIS support this use of ${os_cat} (and if so, what do I need to do
> to make it work?) or do I have to replicate the rule with explicitly
> named SVG files for all the different vegetation types?
>
> David
>
> --
> David James
> da...@djames.org.uk
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread McDonaldR
You can grab QGIS styles for OSMM here:

https://github.com/mixedbredie/QGIS-styles/tree/master/OSMM

and here:

https://github.com/QGIS-UK/Styles/tree/master/OSMM

The QML and SLDs depend on the schema of the source data (GML, shapefiles) and 
how they are loaded into the database (Loader!, GoLoader, Productivity Suite).  
Usually descriptiveterm, descriptivegroup and make are used for the styles.

These SLD files for OSMM are based on the OS styles but without the reference 
to os_cat field.

https://github.com/mixedbredie/Geoserver-OS-SLDs

hope that helps a bit.

Ross

From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Thomas Colley
Sent: 01 September 2014 09:35
To: Giuseppe Sucameli; David James
Cc: qgis-user ML
Subject: Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

os_cat is a field used for styling in OS layers. The complication is (at least 
last I checked) the field doesn’t exist in the data as shipped. There are some 
SQL files on the OS website for creating os_cat (calculated from a combination 
of other fields) in PostGIS, but I’m not sure how that would be applied to 
shapefiles.

I’m sure that OS have released proper QGIS Style Files now as well as SLDs. I 
can’t find them at the minute (too early on a Monday morning) but I’ll let you 
know when I do.

Cheers

Tom

From: 
qgis-user-boun...@lists.osgeo.org<mailto:qgis-user-boun...@lists.osgeo.org> 
[mailto:qgis-user-boun...@lists.osgeo.org]<mailto:[mailto:qgis-user-boun...@lists.osgeo.org]>
 On Behalf Of Giuseppe Sucameli
Sent: 01 September 2014 08:34
To: David James
Cc: qgis-user ML
Subject: Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap


Hi David,
IIRC that kind of variables are not supported by QGIS neither by the SLD 
standard.

You must replace it with the correct SVG filename.

Anyway, what is "os_cat" supposed to be? Is it a layer's field name?

Regards.

Sent from mobile. Sorry for being short.
--
Giuseppe Sucameli
Il 01/set/2014 00:01 "David James" 
mailto:da...@djames.org.uk>> ha scritto:
I'm very much a beginner with QGIS and I'm trying to run long before I
can crawl ...

I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
(from
http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip)
to style the sample OS MasterMap data.

Initially, I found that when I loaded the SLD file into QGIS, only the
first rule was being picked up, but eventually I found tjmgis's answer
in
http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
(that all the  and  except the
first and the last in the SLD files need removing) and now I'm making
progress.

I'm struggling with one problem: there's a rule called
Vegetation (pattern) - 1:35 to 1:3,496
which specifies the SVG file as
xlink:href="osmmsymbols/${os_cat}.svg"/>

QGIS is showing me question marks in these areas (which I think means it
is not finding the SVG file).

Does QGIS support this use of ${os_cat} (and if so, what do I need to do
to make it work?) or do I have to replicate the rule with explicitly
named SVG files for all the different vegetation types?

David

--
David James
da...@djames.org.uk<mailto:da...@djames.org.uk>


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org<mailto:Qgis-user@lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/qgis-user
 
This message is strictly confidential. If you have received this in error, 
please inform the sender and remove it from your system. If received in error 
you may not copy, print, forward or use it or any attachment in any way. This 
message is not capable of creating a legal contract or a binding representation 
and does not represent the views of Angus Council. Emails may be monitored for 
security and network management reasons.  Messages containing inappropriate 
content may be intercepted. Angus Council does not accept any liability for any 
harm that may be caused to the recipient system or data on it by this message 
or any attachment.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread Thomas Colley
os_cat is a field used for styling in OS layers. The complication is (at least 
last I checked) the field doesn’t exist in the data as shipped. There are some 
SQL files on the OS website for creating os_cat (calculated from a combination 
of other fields) in PostGIS, but I’m not sure how that would be applied to 
shapefiles.

 

I’m sure that OS have released proper QGIS Style Files now as well as SLDs. I 
can’t find them at the minute (too early on a Monday morning) but I’ll let you 
know when I do.

 

Cheers


Tom

 

From: qgis-user-boun...@lists.osgeo.org 
[mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Giuseppe Sucameli
Sent: 01 September 2014 08:34
To: David James
Cc: qgis-user ML
Subject: Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

 

Hi David,
IIRC that kind of variables are not supported by QGIS neither by the SLD 
standard.

You must replace it with the correct SVG filename.

Anyway, what is "os_cat" supposed to be? Is it a layer's field name?

Regards.

Sent from mobile. Sorry for being short.
--
Giuseppe Sucameli

Il 01/set/2014 00:01 "David James"  ha scritto:

I'm very much a beginner with QGIS and I'm trying to run long before I
can crawl ...

I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
(from
http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip)
to style the sample OS MasterMap data.

Initially, I found that when I loaded the SLD file into QGIS, only the
first rule was being picked up, but eventually I found tjmgis's answer
in
http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
(that all the  and  except the
first and the last in the SLD files need removing) and now I'm making
progress.

I'm struggling with one problem: there's a rule called
Vegetation (pattern) - 1:35 to 1:3,496
which specifies the SVG file as
xlink:href="osmmsymbols/${os_cat}.svg"/>

QGIS is showing me question marks in these areas (which I think means it
is not finding the SVG file).

Does QGIS support this use of ${os_cat} (and if so, what do I need to do
to make it work?) or do I have to replicate the rule with explicitly
named SVG files for all the different vegetation types?

David

--
David James
da...@djames.org.uk


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-09-01 Thread Giuseppe Sucameli
Hi David,
IIRC that kind of variables are not supported by QGIS neither by the SLD
standard.

You must replace it with the correct SVG filename.

Anyway, what is "os_cat" supposed to be? Is it a layer's field name?

Regards.

Sent from mobile. Sorry for being short.
--
Giuseppe Sucameli
Il 01/set/2014 00:01 "David James"  ha scritto:

> I'm very much a beginner with QGIS and I'm trying to run long before I
> can crawl ...
>
> I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
> (from
>
> http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip
> )
> to style the sample OS MasterMap data.
>
> Initially, I found that when I loaded the SLD file into QGIS, only the
> first rule was being picked up, but eventually I found tjmgis's answer
> in
>
> http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
> (that all the  and  except the
> first and the last in the SLD files need removing) and now I'm making
> progress.
>
> I'm struggling with one problem: there's a rule called
> Vegetation (pattern) - 1:35 to 1:3,496
> which specifies the SVG file as
> xlink:href="osmmsymbols/${os_cat}.svg"/>
>
> QGIS is showing me question marks in these areas (which I think means it
> is not finding the SVG file).
>
> Does QGIS support this use of ${os_cat} (and if so, what do I need to do
> to make it work?) or do I have to replicate the rule with explicitly
> named SVG files for all the different vegetation types?
>
> David
>
> --
> David James
> da...@djames.org.uk
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Help with Ordnance Survey SLD's for OS Mastermap

2014-08-31 Thread David James
I'm very much a beginner with QGIS and I'm trying to run long before I
can crawl ...

I'm trying to use the Ordnance Survey MasterMap Topography layer SLD's
(from
http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip)
to style the sample OS MasterMap data.

Initially, I found that when I loaded the SLD file into QGIS, only the
first rule was being picked up, but eventually I found tjmgis's answer
in
http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis
(that all the  and  except the
first and the last in the SLD files need removing) and now I'm making
progress.

I'm struggling with one problem: there's a rule called
Vegetation (pattern) - 1:35 to 1:3,496
which specifies the SVG file as
xlink:href="osmmsymbols/${os_cat}.svg"/>

QGIS is showing me question marks in these areas (which I think means it
is not finding the SVG file).

Does QGIS support this use of ${os_cat} (and if so, what do I need to do
to make it work?) or do I have to replicate the rule with explicitly
named SVG files for all the different vegetation types?

David

-- 
David James
da...@djames.org.uk


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user