[mkgmap-dev] vehicles in restriction relations
From Minko ligfietser at online.nl on Mon Apr 7 16:56:34 BST 2014
Thanks Gerd, seems working fine. I have set the following rules in my relation file (cycling map) Because it's a bicycle routing only, I dont use motorcar tags from OSM and have to apply all bicycle restrictions for "motorcar" activity: # remove restrictions for motorcar type=restriction:motorcar {delete type} type=restriction & restriction:motorcar=* {delete restriction:motorcar} #apply bicycle restrictions also for "motorcar" type=restriction & restriction:bicycle=* {set restriction:motorcar='${restriction:bicycle}'} type=restriction:bicycle {set type=restriction} type=restriction & except ~ '.*bicycle' {set except='${except};motorcar'} Not sure if mkgmap recognize all these rules, I can hardly find any restrictions for bicycles. The last rule with 'except bicycle' is working in "car mode" as intended. > I thought about this again and found this solution: > With r3172 you can add rules to the relations file to manipulate > restriction relations, > e.g. like this : > type=restriction & except ~ '.*bicycle' {set > except='${except};motorcar'} > > The meaning of the restriction relation is now evaluated after style > processing, so > you can change or add or remove tags. > If the restriction is not valid after that, it will be ignored. > You probably have to add a few more rules to handle the cases like > type=restriction:motorcar > or > restriction:motorcar=no_u_turn > > I hope that works for all cases?
- Previous message: [mkgmap-dev] vehicles in restriction relations
- Next message: [mkgmap-dev] vehicles in restriction relations
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list