line labels
Hudson, Mark (xwave)
Mark.Hudson at XWAVE.COM
Wed Feb 1 07:05:41 PST 2006
Hi:
I have a line shapefile consisting of city streets that I am trying to
label based on the attribute of street name. I can get the labels to
appear but I am wondering how to get them to draw according to the line
angle. That is, is there a way to get the street name (label) to draw
along side the street (line)? Just wondering if there is a way to
automatically get the label to draw as same angle of the street as my
streets run at many different angles.....
Code for layer follows:
#layer ******* Kingston city streets *******
LAYER
NAME "StreetOutlines"
STATUS ON
DATA "Kgn_roads_section"
TYPE LINE
MAXSCALE 750
LABELITEM "road"
LABELCACHE ON
CLASS
NAME "Outlines"
STYLE
COLOR 255 255 255
MINWIDTH 4
END
LABEL
ANGLE auto
COLOR 0 0 0
TYPE BITMAP
POSITION Auto
PARTIALS FALSE
MINDISTANCE 100
MINSIZE 100
BUFFER 0
END # end of label
END
END
Any comments would be helpful.
Thanks, Mark Hudson.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20060201/ee3c101c/attachment.htm>
More information about the MapServer-users
mailing list