Sortshp can do this for shapefiles, see: http://mapserver.gis.umn.edu/docs/reference/utilityreference/sortshp
Best regards, Bart -- Bart van den Eijnden OSGIS, Open Source GIS http://www.osgis.nl --------- Oorspronkelijk bericht -------- Van: Gregor Mosheh <[EMAIL PROTECTED]> Naar: [email protected] <[email protected]> Onderwerp: Re: [UMN_MAPSERVER-USERS] Class order in mapfile Datum: 26/04/07 08:51 > > If I understand correctly, classes in a layer are not rendered in the > > order they appear in the layer, but as they are encountered in the > > dataset, e.g. a shapefile. > > Correct. Features are rendered in the order they appear in the data > source. The selection of class for a feature is a first-match based on the > classes' criteria. > > > > A workaround could for instance be seperating classes into layers. > > Any other workarounds? > > Another could be to sort your dataset to fit your classes. Using > PostgreSQL, the CLUSTER command will physically sort a table by the given > criteria. There may or may not be something you could do with shapefiles > to accomplish this same goal. (in a pinch, I suppose you could shp2pgsql, > cluster, pgsql2shp) > > > > -- > HostGIS > Cartographic development and hosting services > 707-822-9355 > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, only if you can restore." > - AMANDA > >
