logo separator

[mkgmap-dev] access=no on a cycleway doesn't work?

From Felix Hartmann extremecarver at googlemail.com on Mon Nov 23 18:25:09 GMT 2009


Toby Speight wrote:
> I've had a look at assigning access values and now have the following at
> the head of my lines file:
>
> /--------
> | # Don't route over unsuitable roads
> | smoothness=horrible | smoothness=very_horrible | smoothness=impassable
> |     { set motorcar=no; set hgv=no; set bicycle=no; }
> | smoothness=very_bad
> |     { set motorcar=no; set hgv=no; }
> | 
> | # Highway access rules
> | highway=bridleway {add access = no; add bicycle = yes; add horse=yes; add foot = yes}
> | highway=cycleway {add access = no; add bicycle = yes; add foot = yes}
> | highway=footway {add access = no; add foot = yes}
> | highway=motorway {add oneway = yes; add bicycle = no; add horse=no; add foot = no }
> | highway=motorway_link {add bicycle = no; add horse=no; add foot = no }
> | highway=path {add access = no; add bicycle = yes; add foot = yes}
> | highway=track {add access = no; add bicycle = yes; add horse=yes; add foot = yes}
> | highway=pedestrian & area!=yes {add access = no; add foot = yes}
> | highway=steps {add access = no; add foot = yes}
> | 
> | bicycle=dismount { set bicycle = 'yes'; set maxspeed = '5' }
> | 
> | # General access rules
> | access=* { add foot='${access}'; add horse='${access}'; add vehicle='${access}'; }
> | vehicle=* { add bicycle='${vehicle}'; add motor_vehicle='${vehicle}'; }
> | motor_vehicle=* { add motorcycle='${motor_vehicle}'; add motorcar='${motor_vehicle}';
> |                   add psv='${motor_vehicle}'; add hgv='${motor_vehicle}'; add goods='${motor_vehicle}';
> |                   add taxi='${motor_vehicle}'; }
> \--------
>
> Should this be added to the default style?  If so, could a volunteer
> please commit it?  Thanks.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>   
No IMHO it shouldn't. Why? Because unconditional rules will not work as 
you expect!
If one rule matches, all other unconditional are dropped for the line. 
So forget about it - or make so many combinations that it has to match. 
You will then however quickly arrive at over 1000 rules, just for a few 
tags.



More information about the mkgmap-dev mailing list