<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><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;}
/* 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";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@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]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><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 lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> qgis-user-bounces@lists.osgeo.org [mailto:qgis-user-bounces@lists.osgeo.org] <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 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 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 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 href="mailto:david@djames.org.uk">david@djames.org.uk</a><br><br><br>_______________________________________________<br>Qgis-user mailing list<br><a href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a><br><a 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></body></html>