[mapserver-users] Bobs Googlish road symbolization help
Bob Basques
Bob.Basques at ci.stpaul.mn.us
Fri Mar 27 15:12:25 PDT 2009
All,
It ended up being a problem with an invisible (as in missing) "END" tag.
:c)
bobb
>>> Stephen Woodbridge <woodbri at swoodbridge.com> 03/27/09 4:35 PM >>>
JJ,
You need to use "OFFSET x y" to shift the shield to lineup with the
label text. I also recommend using POSITION CC. x and y are numbers of
pixel and can be negative values to shift in the opposite direction.
-Steve W
Steve Lime wrote:
> Do you have a visual sample of the problem?
>
> Steve
>
>>>> On 3/27/2009 at 11:05 AM, in message
> <848500.65634.qm at web52309.mail.re2.yahoo.com>, "J.J. Schlafley"
> <jjschlafley at yahoo.com> wrote:
>> HI,
>> I am using Bob's Googlish road symbolization example, but cant get road
>> shields to "line up" with road labels. GAP property for my symbol doesnt
>> seem to work. Symbol and Layer def below. Mapserver version 5.2.
>>
>> Thanks for the input
>>
>> SYMBOL
>> NAME "highway"
>> TYPE ellipse
>> FILLED true
>> POINTS
>> 1.5 1
>> END
>> GAP 10
>> END
>>
>> LAYER
>> NAME 'road_sym'
>> GROUP 'interstate_poly'
>> DATA "Roads"
>> STATUS OFF
>> TYPE ANNOTATION
>> CLASSITEM 'FCC'
>> LABELITEM 'RDNUMBER'
>> TOLERANCE 1000
>> CLASS
>> EXPRESSION (("[FCC]" = "A11") OR ("[FCC]" = "A12")) # interstates
>> STYLE
>> SYMBOL 'highway'
>> SIZE 18
>> COLOR 115 113 206
>> OUTLINECOLOR 254 254 254
>> END
>> LABEL
>> TYPE TRUETYPE
>> FONT arial
>> SIZE 12
>> COLOR 254 254 254
>> MINDISTANCE 200
>> MINFEATURESIZE 10
>> OFFSET 0 0
>> PARTIALS FALSE
>> END
>> END
>> CLASS
>> EXPRESSION 'A21' # US Highway
>> STYLE
>> SYMBOL 'highway'
>> SIZE 18
>> COLOR 255 255 255
>> OUTLINECOLOR 0 0 0
>> END
>> LABEL
>> TYPE TRUETYPE
>> FONT arial
>> SIZE 11
>> COLOR 0 0 0
>> MINDISTANCE 250
>> MINFEATURESIZE 15
>> OFFSET 0 -1
>> PARTIALS FALSE
>> END
>> MAXSCALE 400000
>> END
>>
>>
>>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list