<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>sorry for the delay.<br>The statement "setaccess no" sets the access tags with prefix mkgmap: to no, e.g. mkgmap:bicycle, mkgmap:taxi, mkgmap:car etc.<br>I think that works okay. I guess you expected that it sets the similar values without the prefix?<br>Or do you think that the finalize section should not override any value prefixed with mkgmap: ?<br><br>Anyhow, I am not really happy with your solution. I have the feeling that these rules should<br>be placed in inc/access, but it seems that one cannot override the road_class in the finalize section.<br><br>@WanMil: <br>Do you see a better solution?<br><br>Gerd<br><br><div>> Date: Wed, 22 Oct 2014 16:04:30 +0200<br>> From: ligfietser@online.nl<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] Problematic routing on road_class=3 ferry routes for hikers<br>> <br>> More improvements:<br>> It seems setaccess=no is not the correct command (?), so I changed it into setaccess no<br>> Then it turns out that in the finalize section mkgmap notice the tag bicycle=yes and converts it into mkgmap:bicycle=yes, so it somehow switches the bicycle access flag back off (means access allowed), what I dont understand because I use 'setaccess no'. <br>> This is either a bug or I don't understand the working of the finalize section.<br>> <br>> Anyway, as workaround I have to delete also bicycle and motorcar tags in the last step (for simplicity, other vehicles like taxi, bus etc are ignored):<br>> <br>> route=ferry & foot!=no {set foot_ferry=yes} <br>> route=ferry {set foot=no; add mkgmap:ferry=1} [0x1b road_class=3 road_speed=0 resolution 19 continue with_actions]<br>> route=ferry & foot_ferry=yes {setaccess no; set foot=yes; delete bicycle; delete motorcar} [0x1b road_class=0 road_speed=0 resolution 23]<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>