[mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE
Jeff McKenna
jmckenna at gatewaygeomatics.com
Wed Apr 27 11:12:03 PDT 2011
On 11-04-27 12:51 PM, Rahkonen Jukka wrote:
> Hi,
>
> My old OpenStreetMap mapfile does not work any more after update. I read that some SYMBOL stuff has been moved into STYLE. Could somebody tell how should I convert the following symbols which were used for styling railways into STYLE things giving the same appearence?
>
> SYMBOL
> NAME "rail"
> TYPE TRUETYPE
> FONT sc
> CHARACTER '|'
> GAP -3
> END
> SYMBOL
> NAME "railfar"
> TYPE SIMPLE
> PATTERN 5 5 END
> END
>
Just to add to what Christy mentioned, here is a snippet of my OSM
mapfile for MapServer 6.0:
#################
# Inline Symbols
#################
SYMBOL
NAME "rail"
TYPE TRUETYPE
FONT sc
CHARACTER '|'
END
SYMBOL
NAME "railfar"
TYPE SIMPLE
END
...
LAYER
...
CLASS
...
STYLE
SYMBOL rail
SIZE 5
COLOR "#555554"
GAP -3
END
END
END
LAYER
...
CLASS
...
STYLE
SYMBOL railfar
WIDTH 2
COLOR "#ffffff"
PATTERN 5 5 END
END
END
END
Hope that helps.
-jeff
--
Jeff McKenna
MapServer Consulting and Training Services
http://www.gatewaygeomatics.com/
More information about the MapServer-users
mailing list