[mapserver-users] attach text to displayed features that are coming from postgis

John Mitchell mitchelljj98 at gmail.com
Mon Aug 18 09:17:26 PDT 2008


Hi,

I would like to be able to attach text to displayed features that are coming
from postgis.  Currently I am just displaying points (layer displayed below)
as an ellipse from postgis, but I would like to have text on top of each
ellipse based on the contents of a field uniquely associated to each point.

John

 LAYER
  # name of layer
  NAME "gv:tasmania_cities"
  GROUP "Collaboration"

  # what type of data is this?
  TYPE POINT

  # always returned with interface
  STATUS ON

  TRANSPARENCY 100

  CONNECTIONTYPE postgis

  CONNECTION "user=postgres dbname=gvdb host=localhost port=5432
password=password1117"
  DATA "the_geom from tasmania_cities"


  CLASS
    STYLE
        symbol "dot"
        SIZE 8
          COLOR 0 0 0
    END
   END
 END


-- 
John J. Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080818/39161b92/attachment.htm>


More information about the MapServer-users mailing list