[mapserver-users] How can i get an attribute value of a specific shape in the mapfile?

Steve Lime sdlime at gmail.com
Thu Sep 22 21:00:03 EDT 2011


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.

Steve

On Wednesday, September 21, 2011, jjwang <jaja0506 at gmail.com> wrote:
> Is there any way to get an attribute value of a specific shape in the
> mapfile?
> For example:
> I want to know the value of the attribute 'AREA' of a shape whose 'NAME'
is
> 'REDFERN'.
> So that I can use it in the EXPRESSION like this:
> CLASS
>  EXPRESSION ([AREA] > [the area value of shape whose name is 'redfern'])
>  ...
> END
>
> JJ
>
> --
> View this message in context:
http://osgeo-org.1803224.n2.nabble.com/How-can-i-get-an-attribute-value-of-a-specific-shape-in-the-mapfile-tp6815042p6815042.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> 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/20110922/8e0b98ba/attachment.html


More information about the mapserver-users mailing list