[mapserver-users] Attribute based symbol

Adam Eskreis aeskreis at gmail.com
Wed May 27 10:26:11 PDT 2009


I am trying to create a layer that has a symbol, however, I want the symbol
for each geometry to be based on a field from the database.  For instance, I
am trying to make a layer that would look something like this:

LAYER
   GROUP symbol_layer
   TYPE point
   STATUS on
   CONNECTIONTYPE postgis
   CONNECTION "<connection string>"
   DATA "the_geom from (SELECT the_geom, symbol_img_url from foo) as foo
using unique id using SRID=-1"
   CLASS
      STYLE
          SYMBOL "[symbol_img_url]"
      END
   END
 END

Is something like this possible?  If not, what part of the source would I
have to edit in order to make it possible?

Thank you

-Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090527/62a44e2f/attachment.htm>


More information about the MapServer-users mailing list