Re: [mapserver-users] draw polygons ordered by field ? (from File System)

2010-11-09 Thread Daniel Morissette
Sebastian E. Ovide wrote: Is it possible define an order on how the polygons are drawn ? Say for example to draw the polygons with field RISK 0 first, then with RISK =1 and so on... I know that using PG we can use Select * from XXX order by RISK Is there any way to do that using

Re: [mapserver-users] draw polygons ordered by field ? (from File System)

2010-11-09 Thread Bart van den Eijnden (OSGIS)
The only way I know of is to use the sortshp utility. http://mapserver.org/utilities/sortshp.html Best regards, Bart Hi All, Reading a shapefile (ESRI/MapInfo) from FS with polygons overlapping. Each polygon is drawn with a different color based on a field called RISK. Is it possible

[mapserver-users] draw polygons ordered by field ? (from File System)

2010-11-09 Thread Sebastian E. Ovide
Hi All, Reading a shapefile (ESRI/MapInfo) from FS with polygons overlapping. Each polygon is drawn with a different color based on a field called RISK. Is it possible define an order on how the polygons are drawn ? Say for example to draw the polygons with field RISK 0 first, then with RISK =1

Re: [mapserver-users] draw polygons ordered by field ? (from File System)

2010-11-09 Thread Rahkonen Jukka
Hi, Sortshp can order data only by one attribute. If that is not enough you can sort shapefile by two or more attributes with ogr2ogr by giving ORDER BY inside the -sql parameter. Of course it is possible to split the shapefile into several layers by using FILTER. In that case the drawing order