[mapserver-users] draw polygons ordered by field ? (from File
Jukka.Rahkonen at mmmtike.fi
Tue Nov 9 08:53:15 EST 2010
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 can be controlled by ordering the layers in the mapfile
but perhaps you do not want many layers. However, if the result is to be
used through WMS the layers can be combined back with GROUP.
Bart van den Eijnden wrote:
> The only way I know of is to use the sortshp utility.
> Best regards,
> > 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
> > 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 ESRI/MapInfo files ?
> > Thanks
> > --
> > Sebastian E. Ovide
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
More information about the mapserver-users