Help on tiger, again.
Hermawan Sutantio
hermawan_s at HOTMAIL.COM
Tue Mar 1 22:29:08 PST 2005
Is there an identifier for 'highways' in the roads layer that I seem to be
missing? I inserted those piece of code as shown below, but the highways are
still drawn in black with size 1. Thanks.
Herman
LAYER
NAME "Michigan"
TYPE LINE
STATUS DEFAULT
TILEINDEX "C:\ms4w\apps\gmap\htdocs\michigan\roads-tile"
MAXSCALE 50000
CLASS
NAME "Michigan Roads"
COLOR 0 0 0
SIZE 1
END
CLASS
NAME "highway"
COLOR 255 0 0 # make it red
SYMBOL 0 # this is a built in circle symbol
SIZE 5 # make it 5 pixels wide
# if you want it fancy then add also
OVERLAYSYMBOL 0
OVERLAYCOLOR 255 255 255 # add a white down the center of the red
OVERLAYSIZE 1
END
>>>
Yes, you can specify thickness like this:
CLASS
NAME "highway"
COLOR 255 0 0 # make it red
SYMBOL 0 # this is a built in circle symbol
SIZE 5 # make it 5 pixels wide
# if you want it fancy then add also
OVERLAYSYMBOL 0
OVERLAYCOLOR 255 255 255 # add a white down the center of the red
OVERLAYSIZE 1
END
You can also do this by adding multiple STYLE ... END blocks instead of
using OVERLAY* where each STYLE is draw in turn to make a more complex
styling of the line.
-Steve
Herman Teo wrote:
>Hi there.
>I have been working on tiger files for a while now. I manage to get the
>feature labels working right now. I'm just wondering, in roads layer, are
>there ways to make highways stand out in front of the normal roads, such as
>giving them thicker red lines?
>Thanks again for all your help.
>
>Herman Teo
>
More information about the MapServer-users
mailing list