<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">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"/>)<br>
<br>
Perhaps I need to ask on the developers' list if this is likely to
be supported in the future.<br>
<br>
I've not had a chance to try the QML files yet.<br>
<br>
David<br>
<br>
On 01/09/2014 11:26, McDonaldR wrote:<br>
</div>
<blockquote
cite="mid:7CCEF44D1C42854999B19B1EB27281F641B2E628@SR2ORBHQ2K803.angus.gov.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"Century Gothic";
panose-1:2 11 5 2 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Century Gothic","sans-serif";
color:#1F497D;
font-weight:normal;
font-style:normal;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div>
<div><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial;
mso-ansi-language: EN-GB; mso-fareast-font-family: 'Times
New Roman'; mso-fareast-language: EN-GB; mso-bidi-language:
AR-SA"><font size="1">
</font></span></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D">You
can grab QGIS styles for OSMM here:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><a
moz-do-not-send="true"
href="https://github.com/mixedbredie/QGIS-styles/tree/master/OSMM">https://github.com/mixedbredie/QGIS-styles/tree/master/OSMM</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D">and
here:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><a
moz-do-not-send="true"
href="https://github.com/QGIS-UK/Styles/tree/master/OSMM">https://github.com/QGIS-UK/Styles/tree/master/OSMM</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D">These
SLD files for OSMM are based on the OS styles but
without the reference to os_cat field.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><a
moz-do-not-send="true"
href="https://github.com/mixedbredie/Geoserver-OS-SLDs">https://github.com/mixedbredie/Geoserver-OS-SLDs</a><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D">hope
that helps a bit.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D">Ross<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:13.0pt;font-family:"Century
Gothic","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:qgis-user-bounces@lists.osgeo.org">mailto:qgis-user-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b>Thomas Colley<br>
<b>Sent:</b> 01 September 2014 09:35<br>
<b>To:</b> Giuseppe Sucameli; David James<br>
<b>Cc:</b> qgis-user ML<br>
<b>Subject:</b> Re: [Qgis-user] Help with Ordnance
Survey SLD's for OS Mastermap<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Cheers<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><br>
Tom<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif""
lang="EN-US">
<a moz-do-not-send="true"
href="mailto:qgis-user-bounces@lists.osgeo.org">qgis-user-bounces@lists.osgeo.org</a>
<a moz-do-not-send="true"
href="mailto:[mailto:qgis-user-bounces@lists.osgeo.org]">[mailto:qgis-user-bounces@lists.osgeo.org]</a>
<b>On Behalf Of </b>Giuseppe Sucameli<br>
<b>Sent:</b> 01 September 2014 08:34<br>
<b>To:</b> David James<br>
<b>Cc:</b> qgis-user ML<br>
<b>Subject:</b> Re: [Qgis-user] Help with Ordnance
Survey SLD's for OS Mastermap<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hi David,<br>
IIRC that kind of variables are not supported by QGIS
neither by the SLD standard.<o:p></o:p></p>
<p>You must replace it with the correct SVG filename.<o:p></o:p></p>
<p>Anyway, what is "os_cat" supposed to be? Is it a layer's
field name?<o:p></o:p></p>
<p>Regards.<o:p></o:p></p>
<p>Sent from mobile. Sorry for being short.<br>
--<br>
Giuseppe Sucameli<o:p></o:p></p>
<div>
<p class="MsoNormal">Il 01/set/2014 00:01 "David James"
<<a moz-do-not-send="true"
href="mailto:david@djames.org.uk">david@djames.org.uk</a>>
ha scritto:<o:p></o:p></p>
<p class="MsoNormal">I'm very much a beginner with QGIS
and I'm trying to run long before I<br>
can crawl ...<br>
<br>
I'm trying to use the Ordnance Survey MasterMap
Topography layer SLD's<br>
(from<br>
<a moz-do-not-send="true"
href="http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip"
target="_blank">http://www.ordnancesurvey.co.uk/docs/styled-layer-descriptors/topography-sld.zip</a>)<br>
to style the sample OS MasterMap data.<br>
<br>
Initially, I found that when I loaded the SLD file into
QGIS, only the<br>
first rule was being picked up, but eventually I found
tjmgis's answer<br>
in<br>
<a moz-do-not-send="true"
href="http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis"
target="_blank">http://gis.stackexchange.com/questions/69854/styling-os-vectormap-local-in-qgis</a><br>
(that all the <FeatureTypeStyle> and
</FeatureTypeStyle> except the<br>
first and the last in the SLD files need removing) and
now I'm making<br>
progress.<br>
<br>
I'm struggling with one problem: there's a rule called<br>
<Name>Vegetation (pattern) - 1:35 to
1:3,496</Name><br>
which specifies the SVG file as<br>
xlink:href="osmmsymbols/${os_cat}.svg"/><br>
<br>
QGIS is showing me question marks in these areas (which
I think means it<br>
is not finding the SVG file).<br>
<br>
Does QGIS support this use of ${os_cat} (and if so, what
do I need to do<br>
to make it work?) or do I have to replicate the rule
with explicitly<br>
named SVG files for all the different vegetation types?<br>
<br>
David<br>
<br>
--<br>
David James<br>
<a moz-do-not-send="true"
href="mailto:david@djames.org.uk">david@djames.org.uk</a><br>
<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/qgis-user"
target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><o:p></o:p></p>
</div>
</div>
</div>
<div>
<font face="Arial" size="1">
</font> </div>
<div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt"><span
style="FONT-SIZE: 7.5pt; FONT-FAMILY:
'Arial','sans-serif'; mso-bidi-font-size: 8.0pt;
mso-bidi-font-family: 'Times New Roman'"><font size="2">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.<span
style="mso-spacerun: yes"> </span>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. </font></span></p>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
David James
<a class="moz-txt-link-abbreviated" href="mailto:david@djames.org.uk">david@djames.org.uk</a></pre>
</body>
</html>