[mkgmap-dev] [PATCH v2] Rework of inc/access
From WanMil wmgcnfg at web.de on Fri Apr 18 10:00:12 BST 2014
Hi Steph, obviously it was too late yesterday... I forgot to remove two debugging statements. Attached you find a fixed version. WanMil > Hi, > > Error in style: Error: (inc/access:31): Unrecognised command 'bus' > Found one style in ../styles/default/ > > line 31: psv=* { add taxi='${psv}'; bus='${psv}'; } > > I replaced with : > psv=* { add taxi='${psv}'; add bus='${psv}'; } > > and I obtained a lot of lines to the standard output like : > > 254039672 - > [mkgmap:city=Sinnamary,mkgmap:admin_level2=FRA,mkgmap:admin_level3=Guyane,mkgmap:admin_level4=Guyane,mkgmap:admin_level6=Guyane,mkgmap:admin_level7=Cayenne,mkgmap:admin_level8=Sinnamary,mkgmap:region=Guyane,highway=residential,mkgmap:country=FRA] > Before > 254039672 - > [mkgmap:city=Sinnamary,mkgmap:admin_level2=FRA,mkgmap:admin_level3=Guyane,mkgmap:admin_level4=Guyane,mkgmap:admin_level6=Guyane,mkgmap:admin_level7=Cayenne,mkgmap:admin_level8=Sinnamary,mkgmap:region=Guyane,highway=residential,mkgmap:country=FRA] > After > 254039673 - > [mkgmap:city=Sinnamary,mkgmap:admin_level2=FRA,mkgmap:admin_level3=Guyane,mkgmap:admin_level4=Guyane,mkgmap:admin_level6=Guyane,mkgmap:admin_level7=Cayenne,mkgmap:admin_level8=Sinnamary,mkgmap:region=Guyane,highway=service,mkgmap:country=FRA] > Before > > 4,6 Mo in a text file ! > > Just warnings ? > Is this access file requiring modifications in other style files ? > > Steph > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > -------------- next part -------------- # Define the access restrictions # The following tags define the restrictions: # mkgmap:bicycle # mkgmap:foot # mkgmap:car # mkgmap:truck # mkgmap:taxi # mkgmap:bus # mkgmap:emergency # mkgmap:delivery # A class is not allowed to use the way if its tag is set to 'no' # First set access settings with high priority. # # In case a way is tagged with # highway=motorway;access=yes # we assume that foot and bikes are not allowed anyhow. highway=* & motorroad=yes { add bicycle=no; add foot=no; } highway=motorway | highway=motorway_link { add bicycle=no; add foot=no; } access=agricultural { set access=no; add foot=yes } # Now fill the access tree (http://wiki.openstreetmap.org/wiki/Key:access) # This is required so that subsequent rules do not add a tag (bicycle) which is already defined by a higher tag (vehicle) access=* { add foot='${access}'; add vehicle='${access}'; } vehicle=* { add bicycle='${vehicle}'; add motor_vehicle='${vehicle}'; } motor_vehicle=* { add motorcar='${motor_vehicle}'; add goods='${motor_vehicle}'; add hgv='${motor_vehicle}'; add psv='${motor_vehicle}'; add emergency='${motor_vehicle}'; } psv=* { add taxi='${psv}'; add bus='${psv}'; } # Add access rules that are derived from the highway type highway=steps { add foot=yes; add access=no } highway=pedestrian & area!=yes { add foot=yes; add access=no } highway=path { add foot=yes; add bicycle=yes; add access=no } highway=bridleway { add access=no } highway=cycleway { add bicycle=yes; add access=no } highway=footway { add foot=yes; add access=no } railway=platform { add foot=yes; add access=no } # throughroute cannot be handled differently for different vehicle types # Therefore we have to choose one vehicle type - and the winner is: motorcar motorcar=destination { set mkgmap:throughroute=no; set motorcar=yes } access=destination { set mkgmap:throughroute=no; set access=yes } # Normalize all values that indicate a restriction to 'no' foot=private | foot=agricultural { set foot=no } bicycle=private | bicycle=agricultural { set bicycle=no } motorcar=private | motorcar=agricultural { set motorcar=no } goods=private | goods=agricultural { set goods=no } hgv=private | hgv=agricultural { set motorcar=no } bus=private | bus=agricultural { set bus=no } taxi=private | taxi=agricultural { set taxi=no } emergency=private | emergency=agricultural { set emergency=no } # Copy the OSM access tags to the mkgmap internal tags foot=* { set mkgmap:foot='${foot}' } bicycle=* { set mkgmap:bicycle='${bicycle}' } motorcar=* { set mkgmap:car='${motorcar}' } goods=* { set mkgmap:delivery='${goods}' } hgv=* { set mkgmap:truck='${hgv}' } bus=* { set mkgmap:bus='${bus}' } taxi=* { set mkgmap:taxi='${taxi}' } emergency=* { set mkgmap:emergency='${emergency}' } # The access tag defines all restrictions that are not already set access=* { addaccess '${access}' } # Check for carpool lane (they are not really supported yet so these lines are commented) # hov=* { add carpool='${hov}' } # (carpool=yes | carpool=designated | carpool=permissive | carpool=official) { set mkgmap:carpool=yes }
- Previous message: [mkgmap-dev] [PATCH v1] Rework of inc/access
- Next message: [mkgmap-dev] [PATCH v1] Rework of inc/access
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list