Re: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE
Hi, I managed to make these changes to symbols and layer-class-styles as well as some other changes and additions needed in Layer-Labels and my map lives again. Thank you Jeff, Christy and Thomas. Do we have any good tool with GUI for building mapfiles with advanced styles? Writing everything by hand is little bit complicated, at least for me. -Jukka Rahkonen- Jeff McKenna wrote: 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 #54 GAP -3 END END END LAYER ... CLASS ... STYLE SYMBOL railfar WIDTH 2 COLOR #ff PATTERN 5 5 END END END END Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE
mapserver-utils repository has been updated for 6.0, you can see the changes there. -- thomas On Wed, Apr 27, 2011 at 17:51, Rahkonen Jukka jukka.rahko...@mmmtike.fi 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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE
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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] From MS 5.6 SYMBOL into 6.0 STYLE
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 #54 GAP -3 END END END LAYER ... CLASS ... STYLE SYMBOL railfar WIDTH 2 COLOR #ff PATTERN 5 5 END END END END Hope that helps. -jeff -- Jeff McKenna MapServer Consulting and Training Services http://www.gatewaygeomatics.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users