Label the states on a map
Gary Watry
watry at COAPS.FSU.EDU
Tue Jan 10 12:10:45 PST 2006
In the mapfile
## U.S. States Layers
#
LAYER
NAME "states"
DATA "d:\mapdata\boundaries/statesp030"
STATUS default
TYPE Polygon
MINSCALE 4000000
LABELCACHE on
CLASS
NAME 'U.S. States'
STYLE
OUTLINECOLOR 0 0 0
COLOR 242 245 181
END
END
END
LAYER
NAME "states"
DATA "d:\mapdata\boundaries/statesp020"
STATUS default
TYPE annotation
LABELCACHE on
LABELITEM "STATE"
LABELMINSCALE 4000000
CLASSITEM "FEATURE"
CLASS
LABEL
TYPE truetype
FONT 'arial'
SIZE 8
OUTLINECOLOR 255 255 255
COLOR 255 0 0
MINDISTANCE 500
END
END
END
______________________________________________________________
Gary L. Watry
GIS Coordinator
Center for Ocean-Atmospheric Prediction Studies
FSU / COAPS
Johnson Building, RM 215
2035 East Paul Dirac Drive
Tallahassee, Florida 32306-2840
E-Mail: watry at coaps.fsu.edu
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On
Behalf Of Stephen Woodbridge
Sent: Tuesday, January 10, 2006 2:56 PM
To: MAPSERVER-USERS at lists.umn.edu
Subject: Re: [UMN_MAPSERVER-USERS] Label the states on a map
krishna S wrote:
> Hello all,
> Can anyone please tell me how to label a Map with state names on it.
> I guess it will be done in a mapfile right, but i am not sure how to do
it.
>
> Thanks in advance ......
>
Try adding a LABEL block to you state polygon layer.
-Steve W.
More information about the MapServer-users
mailing list