I&#39;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">&lt;<a href="mailto:stefan.schwarzer@grid.unep.ch">stefan.schwarzer@grid.unep.ch</a>&gt;</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 &quot;unique values&quot; 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 &quot;protected area category&quot;. But the content of these columns is different. So, defining these classes by hand would consume much time; and defining them dynamically via PHP &amp; 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>