[Mapserver-users] label angles

Palle Due Larsen palle at mail-online.dk
Thu Nov 20 15:29:57 EST 2003


I think it needs to be truetype to do this. Try this: 
Add 
TYPE TRUETYPE
FONT "arial-bold" (if you have a font of that name)
SIZE 12

to your LABEL, then remove SIZE TINY (that's only for non-truetype fonts).

Best Regards
Palle Due Larsen
Carl Bro GIS&IT

-----Original Message-----
From: "Michael Smith" <msmith at sanangelompo.org>
To: <mapserver-users at lists.gis.umn.edu>, "Sebastian Albrecht"
<api at justapi.de>
Date: Thu, 20 Nov 2003 11:25:38 -0600
Subject: RE: [Mapserver-users] label angles

> 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
> 
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users

Få en gratis emailkonto her: www.mail-online.dk 
-----------------------------------------------
Deltag i en lille konkurrence på nettet, og
vind et gavekort på 50.000 kroner...
KLIK HER: www.nyhedsbasen.dk/konkurrence





More information about the mapserver-users mailing list