[Mapserver-users] autorotate labels

Valerio noti at ciaoweb.it
Mon Jun 30 07:45:18 PDT 2003


Thank you Eric,
I set up the text file and now it works and rotate labels.
Just a thing:
Labels have a very low resolution. I tried to set up antialias parameter to
true but without results.
It is a small area with big scale data so I'd like to keep text size low
(lower than 10).
Any idea?
...
LABEL
COLOR 0 0 0
SIZE 7
FONT arial
ANGLE AUTO
TYPE TRUETYPE
#MINSIZE 4
#MAXSIZE 60
OFFSET 3 3
MINDISTANCE 100
ANTIALIAS TRUE
END
....

Thanks

Valerio






----- Original Message -----
From: "Eric Bridger" <eric at gomoos.org>
To: "Valerio" <noti at ciaoweb.it>
Cc: "Mapserver List" <mapserver-users at lists.gis.umn.edu>
Sent: Monday, June 30, 2003 11:16 AM
Subject: Re: [Mapserver-users] autorotate labels


> 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