[mapserver-users] Railroad and dual carriage way styles

Stephen Woodbridge woodbri at swoodbridge.com
Thu Dec 13 05:15:35 PST 2001


John,

I have had no answer to my query on railway symbols, but did come up
with a idea for a good looking alternative based on a dual carriageway
in 3.5.

dual carriageway:

SYMBOL 'circle'
COLOR 0 0 0
SIZE 5
OVERLAYSYMBOL 'circle'
OVERLAYCOLOR 255 0 0
OVERLAYSIZE 3

railway:

SYMBOL 'circle'
COLOR 0 0 0
SIZE 5
OVERLAYSYMBOL 'dcircle'
OVERLAYCOLOR 255 255 255
OVERLAYSIZE 3

where 'dcircle' is defined as:

SYMBOL
  NAME 'dcircle'
  TYPE ELLIPSE
  FILLED TRUE
  POINTS 1 1 END
  STYLE 5 5 END
END

The other idea I had was to do an overlay to generate --0--0--0--0--
where the circles are filled, you could use "STYLE 1 5 END" above
instead.

I hope this helps,
  -Steve

"Hockaday, John" wrote:
> 
> Hi,
> 
> I noticed a while ago in the archives that some one wanted to know how to
> make a railroad line in Mapserver 3.5 map files.  I couldn't find any
> answers to that question so I am asking this one.
> 
> In Mapserver 3.4 one could generate a dual carriageway by way of offsets.
> eg
> 
> STYLE
>   -1 0 0
>     1 0 0
> END
> 
> but in Mapserver 3.5 it seems that the STYLE doesn't have offsets.
> 
> How do I generate a railway   "---|---" and how do I generate a dual
> carriageway "==="?
> 
> Thanks in advance.
> 
> John



More information about the MapServer-users mailing list