Railroad symbol

Dylan Keon keon at NACSE.ORG
Fri Feb 25 15:03:55 EST 2005


Camden Daily wrote:
> Does anyone have a good symbol or set of symbols that they use to draw
> railroads?  I'd like the basic two parallel lines with horizontal
> 'ties'.  I just can't seem to get it to work right.
>
> Otherwise, does anyone have any in-depth documentation for how to draw
> symbols?  The documentation out there seems to be more a set of
> examples rather than an explanation of how mapserver actually
> interprets the data.

Camden,

The following will produce a single line with tie marks.  Not a
double-parallel line, but it might get you started anyway.

--Dylan

In layer definition:
   CLASS
     NAME 'Active Line'
     EXPRESSION /Active/
     STYLE
       SYMBOL 'circle'
       COLOR 0 0 0
       SIZE 1
     END
     OVERLAYSYMBOL 'fence'
     OVERLAYCOLOR 0 0 0
     OVERLAYSIZE 7
   END

In my symbols.sym file:
   SYMBOL #12
     NAME "fence"
     TYPE TRUETYPE
     FONT "arial"
     CHARACTER "I"
     GAP 10
   END



More information about the mapserver-users mailing list