[mkgmap-dev] vehicles in restriction relations
From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue Apr 8 06:07:27 BST 2014
Hi Minko, I've just noticed that this solution does not yet work in combination with option --process-destination. Gerd > Date: Mon, 7 Apr 2014 17:56:34 +0200 > From: ligfietser at online.nl > To: mkgmap-dev at lists.mkgmap.org.uk > Subject: Re: [mkgmap-dev] vehicles in restriction relations > > 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? > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20140408/3082041e/attachment.html>
- Previous message: [mkgmap-dev] vehicles in restriction relations
- Next message: [mkgmap-dev] separate level2 boundary files
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list