[mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE

Christy Nieman cnieman at dmsolutions.ca
Wed Apr 27 12:07:57 EDT 2011


Hi,

For the "railfar" symbol, all you need is for the PATTERN to be in the 
style (no symbol required).  Something like:

    STYLE
         COLOR 0 0 0
         WIDTH 2
         PATTERN 5 5 END
    END


For the "rail" symbol, you need to move the GAP parameter from the 
symbol into the style.  Something like:

    STYLE
           SYMBOL "rail"
           GAP -3
           SIZE 5
           COLOR 0 0 0
    END


And in the symbol file:

    SYMBOL
         NAME "rail"
         TYPE TRUETYPE
         FONT sc
         CHARACTER '|'
    END




Christy

On 04/27/2011 11:51 AM, 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
>
>
> -Jukka Rahkonen-
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110427/5654fcd7/attachment.html


More information about the mapserver-users mailing list