[mapserver-users] Query "Unique Values" in Mapfile?

Tamas Szekeres szekerest at gmail.com
Mon Apr 6 17:52:08 EDT 2009


I'm not aware of any support for this in MapServer, however by using
MapScript you could create script to iterate the features and add new
classes to a layer on each unique combination. Then you could save the
mapfile for further editing if required.

Best regards,

Tamas



2009/4/6 Stefan Schwarzer <stefan.schwarzer at grid.unep.ch>

> Hi there,
>
> is it possible to make mapserver directly detect the "unique values" in a
> field of the dbf table? I have twenty or more point and polygon shapefiles,
> each having a column with specific thematic data, such as the "protected
> area category". But the content of these columns is different. So, defining
> these classes by hand would consume much time; and defining them dynamically
> via PHP & SQL, then writing a bit of the mapfile code before launching the
> whole thing looks a little bit complicated for a relative basic request.
>
> Thanks for any hints,
>
> Stef
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090406/fed9395c/attachment.html


More information about the mapserver-users mailing list