How to Construct Railroad Style lines?
Pericles S. Nacionales
naci0002 at UMN.EDU
Fri Dec 29 12:59:54 PST 2006
Bill,
I recommend reading through the symbology reference... I see that you pointed
out a link to some symbol examples in one of your earlier posts but had you
browsed through http://mapserver.gis.umn.edu/docs/reference/symbology/syntax
or http://mapserver.gis.umn.edu/docs/reference/symbology/notes, you would
have seen a link to one of the definitive guides to MapServer symbology:
http://mapserver.gis.umn.edu/docs/howto/cartosymbols
There's at least one example of railroad symbology in that document. All
examples are available in a downloadable file, linked within the document.
Cheers!
-Perry
On Friday 29 December 2006 14:17, 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.htm
>l) 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
--
Perry Nacionales
Dept. of Forest Resources
University of Minnesota
naci0002 at umn.edu
More information about the MapServer-users
mailing list