making efficient map layers
Sean Gillies
sgillies at FRII.COM
Thu Mar 24 07:23:48 PST 2005
Symbol 0 is a single pixel symbol. You cannot size it. You'll need to
use a different symbol for that first style.
cheers,
Sean
On Mar 24, 2005, at 8:06 AM, Jeff Portwine wrote:
> When I use a class definition like this, I only get the 1 pixel line, I
> don't see it overlayed on the wider line.
>
> CLASS
> maxscale 99000
> STYLE
> SYMBOL 0
> SIZE 3
> COLOR 0 255 0
> END
> STYLE
> SYMBOL 0
> SIZE 1
> COLOR 255 255 255
> END
> END
>
> This class only draws the white line and ignores the green style...
> I'm not
> sure why.
>
> -Jeff
>
>>> - How do you go about changing the width of the different types of
>>> roads? I assume each class of road is in a different layer and you
>>> somehow manipulate the line width?
>>
>> In your class for the roads do something like this:
>>
>> CLASS
>> EXPRESSION ...
>> STYLE # first draw a 5 pixel wide green line
>> SYMBOL 0 # built in circle symbol
>> SIZE 5
>> COLOR 0 255 0 # green
>> END
>> STYLE # then draw a 3 pixel wide white line on top of the green
>> SYMBOL 0 # that leaves a 1 pixel border on each side of the
>> white
>> SIZE 3
>> COLOR 255 255 255 # white
>> END
>> STYLE # then draw a 1 pixel wide black line down the center
>> SYMBOL 0
>> SIZE 1
>> COLOR 0 0 0 # black
>> END
>> ...
>> END
>>
>
>
--
Sean Gillies
sgillies at frii dot com
http://users.frii.com/sgillies
More information about the MapServer-users
mailing list