Re: [mapserver-users] Mapfile CLASS hierarchy

2017-01-22 Thread lars . schylberg
.org > Datum: 2017-01-22 05:35 > Ämne: Re: [mapserver-users] Mapfile CLASS hierarchy > > Oh, and I forgot to mention that if you want objects rendered in a > particular order, then your should sort the data in the sources in that > order. You can do this with order by claus

Re: [mapserver-users] Mapfile CLASS hierarchy

2017-01-21 Thread Stephen Woodbridge
Oh, and I forgot to mention that if you want objects rendered in a particular order, then your should sort the data in the sources in that order. You can do this with order by clause on SQL based data sources and using shpsort for shapefiles, ogr2ogr and also sort data. On 1/21/2017 10:03 PM,

Re: [mapserver-users] Mapfile CLASS hierarchy

2017-01-21 Thread Stephen Woodbridge
Within a layer objects are always drawn in the order they are delivered from the datasource. Think of the CLASSes are an IF-ELSEIF-BLOCK, when an object is presented each CLASS is tested and the first one the accepts the object renders it. I often up a default class at then end that has no

[mapserver-users] Mapfile CLASS hierarchy

2017-01-21 Thread Stefanos Anastasiou
Hi list,   according to the documentation, the first layer in the mapfile is drawn first, and the second is drawn on top of that and so on... I was wondering if the same principle applies to the CLASS object as well. For example: I have a "Roads" layer stored in PostGIS with a "Category" column