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 &#39;red fern&#39; 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 &lt;<a href="mailto:jaja0506@gmail.com">jaja0506@gmail.com</a>&gt; wrote:<br>&gt; Is there any way to get an attribute value of a specific shape in the<br>&gt; mapfile?<br>
&gt; For example:<br>&gt; I want to know the value of the attribute &#39;AREA&#39; of a shape whose &#39;NAME&#39; is<br>&gt; &#39;REDFERN&#39;.<br>&gt; So that I can use it in the EXPRESSION like this:<br>&gt; CLASS<br>&gt;  EXPRESSION ([AREA] &gt; [the area value of shape whose name is &#39;redfern&#39;])<br>
&gt;  ...<br>&gt; END<br>&gt;<br>&gt; JJ<br>&gt;<br>&gt; --<br>&gt; 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>
&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>&gt; _______________________________________________<br>&gt; mapserver-users mailing list<br>&gt; <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
&gt; <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>&gt;