Labeling - Can you truncate a numeric type to not show decimals
Steve Lehr
lehrs at ERAU.EDU
Thu Apr 28 11:30:05 PDT 2005
Hey guys - I have a topographical map and the elevation number in the .dbf
file is defined to be a numeric field with 5 decimals: ELEVATION
N 18 5
Is there a way to simply truncate the decimals below for the field
ELEVATION that I wish to label.
LABELITEM (int) ELEVATION
:-)
I'm using CGI Mapserver and map files. Or do I have to create a new .dbf
and add a field to the .dbf of type N with no decimals and populate it with
a script - i.e. scrub the file.
LAYER
NAME topo
DATA topo
LABELITEM ELEVATION
CLASS
COLOR 0 0 0
LABEL
SIZE SMALL
END
END
END
Thanks -- See you in June!
More information about the MapServer-users
mailing list