How to Construct Railroad Style lines?
Bob Basques
bob.basques at CI.STPAUL.MN.US
Fri Dec 29 12:24:39 PST 2006
Bill,
Here's how we do it. Found it in one of the old posts from this list
somewhere I think originally. You should be able to tweak the settings
more to your liking too.
LAYER
NAME 'railroads'
DATA 'SURVEY/2003_12/RAILROAD/railroads'
GROUP 'planimetrics_lines'
STATUS DEFAULT
TYPE LINE
CLASS
COLOR 255 200 0
SIZE 1
SYMBOL 'circle'
OVERLAYSYMBOL dashed2 ## Railroad track linetype
OVERLAYCOLOR 255 200 0
OVERLAYSIZE 3
END
END
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
SYMBOL
NAME "dashed2"
TYPE ellipse
POINTS
1 1
END
STYLE
1 7
END
END
Bill Thoen wrote:
> It seems that line styles for railroads (i.e. lines that look like
> ---|--|--|--|--) are pretty hard to find in the documentation. I did
> find one googlit on the subject from 2003
> (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0302/msg00716.html)
> but I can't seem to make it work. The following map file excerpt built
> from that suggestion just seems to produce a simple red line. I don't
> see how this makes the "tie" lie crossways to the track line. Does
> anyone know what I did wrong? Is there a more modern solution?
>
> MAP
> ...
> SYMBOL
> NAME 'line'
> TYPE ELLIPSE
> FILLED TRUE
> POINTS 1 1 END
> END
> SYMBOL
> NAME 'tie'
> TYPE ELLIPSE
> FILLED TRUE
> POINTS 1 1 END
> STYLE 1 3 END
> END
> ...
> LAYER
> NAME railroads
> GROUP transportation
> TYPE LINE
> STATUS ON
> CONNECTIONTYPE OGR
> CONNECTION "railroads.TAB"
> LABELITEM "Name"
> CLASS
> NAME "Railroads"
> COLOR 255 100 100
> SYMBOL 'line'
> SIZE 1
> OVERLAYSYMBOL 'tie'
> OVERLAYSIZE 3
> END
> PROJECTION
> "init=epsg:4326"
> END
> END
> ...
> END
>
>
> TIA,
> - Bill Thoen
>
>
--
**************** You can't be late until you show up. ***************
************ You never learn anything by doing it right. ************
*** War doesn't determine who's right. War determines who's left. ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bob.basques.vcf
Type: text/x-vcard
Size: 309 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20061229/8adb1b8c/attachment.vcf>
More information about the MapServer-users
mailing list