<head><title></title></head>
<body><div class="iw_mail" dir="ltr">
<p style="margin:0;" dir="ltr">This blog entry from Simon Mercier describes how this works.</p>
<p style="margin:0;" dir="ltr"><br></p>
<p style="margin:0;" dir="ltr"><a href="http://www.mapgears.com/en/blog/archive/2013-03-05-roads_network_mapping">http://www.mapgears.com/en/blog/archive/2013-03-05-roads_network_mapping</a></p>
<p style="margin:0;" dir="ltr"><br></p>
<p style="margin:0;" dir="ltr">Lars S.</p>
<p style="margin:0;" dir="ltr"><br></p>
<div dir="ltr" style="font-size: 13px; font-family: Lucida Console,Courier New,Courier,Monospace;">-----Originalmeddelande-----<br>> Från: "Stephen Woodbridge" <<a href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a>><br>> Till: <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> Datum: 2017-01-22 05:35<br>> Ämne: Re: [mapserver-users] Mapfile CLASS hierarchy<br>><br>> Oh, and I forgot to mention that if you want objects rendered in a<br>> particular order, then your should sort the data in the sources in that<br>> order. You can do this with order by clause on SQL based data sources<br>> and using shpsort for shapefiles, ogr2ogr and also sort data.<br>><br>> On 1/21/2017 10:03 PM, Stephen Woodbridge wrote:<br>> > Within a layer objects are always drawn in the order they are delivered<br>> > from the datasource. Think of the CLASSes are an IF-ELSEIF-BLOCK, when<br>> > an object is presented each CLASS is tested and the first one the<br>> > accepts the object renders it.<br>> ><br>> > I often up a default class at then end that has no expression ans render<br>> > it in red just so I can see if I missed any cases, but remove it when<br>> > I'm done developing the mapfile.<br>> ><br>> > -Steve W<br>> ><br>> > On 1/21/2017 8:48 PM, Stefanos Anastasiou wrote:<br>> >> Hi list,<br>> >>    according to the documentation, the first layer in the mapfile is<br>> >> drawn first, and the second is drawn on top of that and so on... I was<br>> >> wondering if the same principle applies to the CLASS object as well. For<br>> >> example: I have a "Roads" layer stored in PostGIS with a "Category"<br>> >> column representing the different types of roads. So a category 3 is<br>> >> very small roads, category 2 is city roads, 1 is major roads and 0 is<br>> >> highways and on the same layers I create four CLASS objects with<br>> >> different styles for each Road category. But regardless the order of the<br>> >> classes (either I draw the small roads first or the highways) the same<br>> >> effect insists: the small roads are drawn over the highways.    So what<br>> >> is the solution here? Create different layers of the same dataset<br>> >> representing the various values of the "Category" column ??<br>> >><br>> >><br>> >> Regards,<br>> >> -Stefanos<br>> >><br>> >><br>> >> _______________________________________________<br>> >> mapserver-users mailing list<br>> >> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> >> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>> >><br>> ><br>> ><br>> > ---<br>> > This email has been checked for viruses by Avast antivirus software.<br>> > <a href="https://www.avast.com/antivirus">https://www.avast.com/antivirus</a><br>> ><br>> > _______________________________________________<br>> > mapserver-users mailing list<br>> > <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> > <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>><br>><br>> ---<br>> This email has been checked for viruses by Avast antivirus software.<br>> <a href="https://www.avast.com/antivirus">https://www.avast.com/antivirus</a><br>><br>> _______________________________________________<br>> mapserver-users mailing list<br>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
</div>
<p style="margin:0;" dir="ltr"><br></p>
<p style="margin:0;" dir="ltr"><br></p>
<div class="signature"><div class="separator">--</div></div>
</div></body>