[Mapserver-users] autorotate labels

Valerio noti at ciaoweb.it
Mon Jun 30 06:20:17 EDT 2003


hi,
I have a problem with autorotated labels in line shapefile class.
Each time I use an integer value for SIZE or TRUETYPE value
for TYPE parameters map doesn't redraw.
If I set (i.e.) SIZE= tiny, application works correctly without
rotating the labels....

This is the mapfile:

MAP
NAME "Test"
STATUS ON
EXTENT 1316000 4034000 2310000 5241000 
SIZE 600 600
FONTSET arial.ttf
SHAPEPATH "shape"
IMAGECOLOR 255 255 255
UNITS METERS
.....
#Contours
LAYER
NAME "Curve di livello"
TYPE LINE
STATUS DEFAULT
DATA CurveL
CLASSITEM 'CODICE'
MAXSCALE 10000
MINSCALE 10
LABELITEM "VALORE"
CLASS
NAME "Main contour"
LABEL
    TYPE TRUETYPE
    FONT arial
    COLOR 100 100 100
    OUTLINECOLOR 0 0 0 
    SIZE 11
    ANGLE AUTO
END
EXPRESSION "0801"
OUTLINECOLOR 50 50 50
COLOR 50 50 50
END
CLASS
EXPRESSION "0802"
OUTLINECOLOR 180 180 180
COLOR 180 180 180
END
CLASS
EXPRESSION "0803"
OUTLINECOLOR 250 250 250
COLOR 250 250 250
END
# End of Contours
.......
END
I use MapServer 366 on win2k.

Any help appreciated,
thanks

Valerio



More information about the mapserver-users mailing list