[mapserver-users] How to display Labels from 1 table?
elisabeth theresia
dbee_kawai at yahoo.com
Wed Oct 6 06:19:59 PDT 2010
Hello Mapserver experts,
I have question in my mind, How to display Labels from 1 table in my database
(Postgre + Postgis)?
in this table there are fields of : name_region, values_1, values_2, How to
appear them? Could Mapserver make it?
I ask this question, because I want to show the difference values_1 between
values_2 in my Bar Chart :)
if i do this (code in the bottom) then just appear values_2 in the map :) ?
LAYER
STATUS DEFAULT
TYPE ANNOTATION
CONNECTIONTYPE POSTGIS
CONNECTION "user=x password=x dbname=mydb host=host port=5432"
DATA "the_geom FROM tb_region USING UNIQUE code_region"
LABELITEM "name_region"
CLASS
LABEL
COLOR 0 0 0
TYPE Truetype
FONT Arial
SIZE 11
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
END # LABEL
END #CLASS
LABELITEM "values_1"
CLASS
LABEL
COLOR 255 255 255
TYPE Truetype
FONT Arial
SIZE 9
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
END # LABEL
END #CLASS
LABELITEM "values_2"
CLASS
LABEL
COLOR 255 255 255
TYPE Truetype
FONT Arial
SIZE 9
MINSIZE 8
ANGLE Auto
POSITION UC
ANTIALIAS True
END # LABEL
END #CLASS
END #LAYER
Thanks really appreciate yours,
-Theresia :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20101006/d7aa3c83/attachment.htm>
More information about the MapServer-users
mailing list