[Mapserver-users] autorotate labels

Eric Bridger eric at gomoos.org
Mon Jun 30 02:16:47 PDT 2003


FONTSET is the path to a text file which maps short names to the actual
font name.  E.g. If all your fonts are in a directory: /fonts/ or
C:\fonts\
FONTSET   "C:\fonts\fontset"

Where the fontset file would look like:

helbi                      helbi___.ttf

On Mon, 2003-06-30 at 10:20, Valerio wrote:
> 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
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 





More information about the MapServer-users mailing list