Dear John, You just need to use these additional lines in your class definition:
CLASS ----- ------- LABELITEM "column_name" LABEL COLOR 150 150 150 FONT sans TYPE truetype SIZE 10 PARTIALS FALSE END ------- ------- END #class Regards, Ritesh Ambastha John Mitchell-3 wrote: > > 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 > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > -- View this message in context: http://www.nabble.com/attach-text-to-displayed-features-that-are-coming-from-postgis-tp19035021p19039906.html Sent from the Mapserver - User mailing list archive at Nabble.com. _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users