<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Minko,<br><br>I've just noticed that this solution does not yet work in combination with<br>option --process-destination.<br><br>Gerd<br><br><div>> Date: Mon, 7 Apr 2014 17:56:34 +0200<br>> From: ligfietser@online.nl<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] vehicles in restriction relations<br>> <br>> Thanks Gerd, seems working fine.<br>> <br>> I have set the following rules in my relation file (cycling map)<br>> Because it's a bicycle routing only, I dont use motorcar tags from OSM and have to apply all bicycle restrictions for "motorcar" activity:<br>> <br>> # remove restrictions for motorcar<br>> type=restriction:motorcar {delete type}<br>> type=restriction & restriction:motorcar=* {delete restriction:motorcar}<br>> <br>> #apply bicycle restrictions also for "motorcar"<br>> type=restriction & restriction:bicycle=* {set restriction:motorcar='${restriction:bicycle}'}<br>> type=restriction:bicycle {set type=restriction}<br>> type=restriction & except ~ '.*bicycle' {set except='${except};motorcar'}<br>> <br>> Not sure if mkgmap recognize all these rules, I can hardly find any restrictions for bicycles.<br>> The last rule with 'except bicycle' is working in "car mode" as intended.<br>> <br>> <br>> <br>> > I thought about this again and found this solution:<br>> > With r3172 you can add rules to the relations file to manipulate<br>> > restriction relations,<br>> > e.g. like this :<br>> > type=restriction & except ~ '.*bicycle' {set<br>> > except='${except};motorcar'}<br>> > <br>> > The meaning of the restriction relation is now evaluated after style<br>> > processing, so<br>> > you can change or add or remove tags.<br>> > If the restriction is not valid after that, it will be ignored.<br>> > You probably have to add a few more rules to handle the cases like<br>> > type=restriction:motorcar<br>> > or<br>> > restriction:motorcar=no_u_turn<br>> > <br>> > I hope that works for all cases?<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>