line labels
Clint Johnson
cjohnson at REFRACTIONS.NET
Wed Feb 1 12:09:06 PST 2006
Indeed. To clarify the "ANGLE auto" in your label is the method of
drawing the lables according to the line; however it only works with
TrueType fonts.
Note that if your Mapserver is running on a Unix machine then it may not
be configured to support TrueType fonts
(http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#freetype-support)
Clint
--
Clint Johnson
Refractions Research Inc.
Cjohnson at refractions.net
Stephen Woodbridge wrote:
> 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