altering label with php/mapscript
Don Deskins
dldeskins at GMAIL.COM
Wed Jul 6 08:26:25 PDT 2005
Hello,
I would like to alter the text of a contours layer where the contour is a
line and the labelitem is a number followed by zeros (e.g., 382.000). Since
my contours are in 2 ft increments, I would like to remove the zeros.
Here is a sample contours layer.
LAYER
NAME "Contour064"
STATUS OFF
TYPE line
DATA 'ContoursUTM16M/contours_2ft_001_064.shp'
LABELITEM "CONTOUR"
CLASS
OUTLINECOLOR 0 153 0
TEMPLATE "template.html"
LABEL
ANGLE AUTO
COLOR 0 153 0
SHADOWCOLOR 255 220 160
SHADOWSIZE 1 1
TYPE TRUETYPE
FONT "arial-bold"
SIZE 8
POSITION UC
PARTIALS TRUE
BUFFER 4
FORCE TRUE
END
END
MAXSCALE 20000
TOLERANCE 0
TOLERANCEUNITS PIXELS
END
Any suggestions?
Thanks.
More information about the MapServer-users
mailing list