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.<br>
<br>Best regards,<br><br>Tamas<br><br><br><br><div class="gmail_quote">2009/4/6 Stefan Schwarzer <span dir="ltr"><<a href="mailto:stefan.schwarzer@grid.unep.ch">stefan.schwarzer@grid.unep.ch</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi there,<br>
<br>
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.<br>
<br>
Thanks for any hints,<br>
<br>
Stef<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div><br>