Street labels
Stephen Lime
steve.lime at dnr.state.mn.us
Tue Nov 9 07:44:38 PST 1999
Here's how to use the auto rotation feature for line labeling. All of the
listed parameters are defined in the LABEL object.
Try using ANGLE AUTO for layers of TYPE LINE to turn it on. You'll
want to tune it using the MINDISTANCE, MINFEATURESIZE, BUFFER and
OFFSET label options.
ANGLE a|auto - angle in degrees, can be set to auto.
MINDISTANCE d - Minimum distance in pixels between duplicate labels.
MINFEATURESIZE d|auto - Minimum feature (i.e. line) size in pixels. Can be set to
auto which only labels segments longer than the label.
BUFFER d - Space (in pixels) to reserve around a label.
OFFSET dx dy - Offset in pixels from the feature in pixels. Enter values assuming
horizontal annotation and rotation will be correctly accounted for.
I've attached a sample image showing what can be achieved. Note that street
labeling is highly dependent on having decent line data. Extra nodes and vertices
can really affect things.
Steve
Stephen Lime
Internet Applications Analyst
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.gif
Type: image/gif
Size: 10396 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/19991109/d60873e0/attachment.gif>
More information about the MapServer-users
mailing list