[mapserver-users] Weird multi-line label

Jackey Cheung cheung.jackey at gmail.com
Wed Apr 14 02:02:55 PDT 2010


Hi all,

I am playing around with labels and meet weird situations.

Here's the class I use to generate the attached image

PROJECTION
"init=epsg:4326"
END

LABELITEM "name"

CLASS
MINSCALEDENOM 10000
# STYLE
# COLOR 40 160 20
# END

LABEL
ANGLE [angle]
PRIORITY [priority]
ENCODING "UTF-8"
COLOR 0 0 0
OUTLINECOLOR 255 255 255
TYPE TRUETYPE
FONT "msyh"
SIZE 8
POSITION AUTO
PARTIALS FALSE
MINFEATURESIZE 20
ALIGN CENTER
MAXLENGTH -4
END
END


I was expecting every label to be wrapped at the 4th character. However only
those in green circles are wrapped, while others are not. Do I get something
wrong?


P.S. I've try using WRAP "" and WRAP " ", but got the same image.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100414/87487a40/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: s1.jpg
Type: image/jpeg
Size: 8838 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100414/87487a40/attachment.jpg>


More information about the MapServer-users mailing list