line labels

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Wed Feb 1 07:12:55 PST 2006


Mark,

You have to use

    TYPE TRUETYPE

for the font type.

-Steve

Hudson, Mark (xwave) wrote:
> Hi:
> 
>  
> 
> I have a line shapefile consisting of city streets that I am trying to 
> label based on the attribute of street name.  I can get the labels to 
> appear but I am wondering how to get them to draw according to the line 
> angle.  That is, is there a way to get the street name (label) to draw 
> along side the street (line)?  Just wondering if there is a way to 
> automatically get the label to draw as same angle of the street as my 
> streets run at many different angles…..
> 
>  
> 
> Code for layer follows:
> 
>  
> 
> #layer   ******* Kingston city streets *******
> 
>       LAYER
> 
>         NAME "StreetOutlines"
> 
>         STATUS ON
> 
>         DATA "Kgn_roads_section"
> 
>         TYPE LINE
> 
>         MAXSCALE 750
> 
>         LABELITEM "road"
> 
>         LABELCACHE ON
> 
>         CLASS
> 
>           NAME "Outlines"
> 
>           STYLE
> 
>             COLOR 255 255 255
> 
>             MINWIDTH 4
> 
>           END
> 
>           LABEL
> 
>             ANGLE auto
> 
>                 COLOR 0 0 0
> 
>                 TYPE BITMAP
> 
>                 POSITION Auto
> 
>                 PARTIALS FALSE
> 
>                 MINDISTANCE 100
> 
>                 MINSIZE 100
> 
>                 BUFFER 0
> 
>           END # end of label
> 
>         END
> 
>  
> 
>     END
> 
>  
> 
> Any comments would be helpful.
> 
>  
> 
> Thanks, Mark Hudson.
> 



More information about the MapServer-users mailing list