I suppose if you were using a RDBMS you could do a sub-select in the data statement. Other idea would be to chain a query with a map draw. That is, do a query to identify 'red fern' and then use attributes from it to parameterize a map draw by passing in the area via runtime substitution.<br>
<br>Steve<br><br>On Wednesday, September 21, 2011, jjwang <<a href="mailto:jaja0506@gmail.com">jaja0506@gmail.com</a>> wrote:<br>> Is there any way to get an attribute value of a specific shape in the<br>> mapfile?<br>
> For example:<br>> I want to know the value of the attribute 'AREA' of a shape whose 'NAME' is<br>> 'REDFERN'.<br>> So that I can use it in the EXPRESSION like this:<br>> CLASS<br>>  EXPRESSION ([AREA] > [the area value of shape whose name is 'redfern'])<br>
>  ...<br>> END<br>><br>> JJ<br>><br>> --<br>> View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/How-can-i-get-an-attribute-value-of-a-specific-shape-in-the-mapfile-tp6815042p6815042.html">http://osgeo-org.1803224.n2.nabble.com/How-can-i-get-an-attribute-value-of-a-specific-shape-in-the-mapfile-tp6815042p6815042.html</a><br>
> Sent from the Mapserver - User mailing list archive at Nabble.com.<br>> _______________________________________________<br>> mapserver-users mailing list<br>> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>>