[Mapserver-users] label angles
Michael Smith
msmith at sanangelompo.org
Thu Nov 20 09:25:38 PST 2003
That does not seem to work, I must be doing something wrong. Here is a
portion of my map file can you or anyone tell me if this looks correct?
LAYER
NAME "Roads"
GROUP "roads"
STATUS ON
DATA "tgrds"
TYPE LINE
LABELITEM "street"
CLASS
NAME "Streets & Roads" #this title appears in legend
#SYMBOL 'symbols/ctyhwy.gif'
TEMPLATE "tgrds.html"
COLOR 0 0 0 #212 208 200
LABEL
SIZE TINY #tinysmallmediumlargegiant
POSITION UC
ANGLE AUTO
BUFFER 2 #40 how close label are to each other
MINDISTANCE 150
MINFEATURESIZE 30
#FONT arial-bold
#SIZE 12
COLOR 0 0 0
SHADOWCOLOR 218 218 218
SHADOWSIZE 2 2
END #label
END # Class
HEADER "tgrds_header.html"
FOOTER "tgrds_footer.html"
TOLERANCE 5
DUMP TRUE # allow GML export
END # Layer
-----Original Message-----
From: mapserver-users-admin at lists.gis.umn.edu
[mailto:mapserver-users-admin at lists.gis.umn.edu]On Behalf Of Sebastian
Albrecht
Sent: Wednesday, November 19, 2003 10:32 AM
To: Michael Smith
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] label angles
Hi Michael,
> I am running IIS 5.0, windows 2000, and Mapserver 4. Is there a way to
get
> my street labels to follow the curvature of the streets? Thanks in
advance.
Have a look at the Mapserver documentation.
There is the ANGLE feature within the LABEL object.
Set it to ANGLE AUTO and your labels will follow the curvature of your
streets. I think you need to have mapserver compiled with truetype
support and your layer has to be of type LINE.
Regards,
Sebastian Albrecht
_______________________________________________
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