[Mapserver-users] TEXT expression and MAPMYGIS
Alan Steremberg
alans at wunderground.com
Thu Sep 11 22:49:14 PDT 2003
Hi,
I built a simple database with points, and a bunch of fields that will
eventually have weather data. (If you go to:
http://www.wunderground.com/US/CA/San_Francisco.html scroll to the bottom
and click on the MSN map, you will see what I am trying to build)
I would like to pull two fields out of the database, like:
f_ID and f_NEIGHBORHOOD
If i put it in the LABELITEM as above, it works and I get lots of weather
stations. If i try to create the expression below, it just prints the
text ([f_ID],[f_NEIGHBORHOOD]) on the map without evaluating it. The
other thing I don't understand is that it has to be TYPE ANNOTATION not
TYPE POINT. what am I doing wrong?
LAYER
CONNECTIONTYPE mygis
NAME "pws"
CONNECTION "g7:wui:Phishy:geodata:num"
DATA "geometry from pws feature, pws_num geometry"
STATUS DEFAULT
#TYPE POINT
TYPE ANNOTATION
LABELITEM "f_NEIGHBORHOOD"
#LABELITEM "f_ID"
LABELCACHE TRUE
CLASS
NAME "Weather Station"
# TEXT "([f_ID],[f_NEIGHBORHOOD])"
#TEXT "(A,B)"
SYMBOL "marker"
COLOR 0 0 0
LABEL
TYPE TRUETYPE
FONT "verdana-bold"
SIZE 8
#POSITION UC
POSITION AUTO
OFFSET 0 10
BUFFER 2
COLOR 200 0 0
OUTLINECOLOR 230 230 230
FORCE TRUE
END
END
END
Thanks!
Alan
----------------------------
Alan Steremberg
415-543-5021 x 103
http://www.wunderground.com
More information about the MapServer-users
mailing list