<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 Bernd,<br><br>I think that's the idea of the finalize section. It is called for<br>each added element.<br><br>Gerd<br><br><div>> From: weigelt.bernd@web.de<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Date: Thu, 8 May 2014 19:34:49 +0200<br>> Subject: [mkgmap-dev] finalize and some ways with overlays<br>> <br>> Hi <br>> <br>> i have a problem, that the finalize section to often calls inc/access, in my <br>> case for every overlay and the routable way.<br>> IMHO it should call it only for the routable way(s) with road_speed and <br>> road_class.<br>> <br>> <br>> an example<br>> <br>> lines:<br>> highway=cycleway        [0x1200a resolution 23-23 continue]<br>> highway=cycleway        [0x1100a resolution 24 continue]<br>> highway=cycleway         [0x0a resolution 24 road_class=0 road_speed=1]<br>> <br>> <finalize><br>> # The finalizer section is executed for each element when a rule with an <br>> element type matches<br>> <br>> # calculate the access rules<br>> include 'inc/access' ;<br>> <br>> ------<br>> inc/access includes for testing some ways this additional test<br>> highway=* & bicycle=official { echo ' 1 ${highway} | ${bicycle} | <br>> ${mkgmap:bicycle} ' }<br>> <br>> output for this way<br>> <br>> http://www.openstreetmap.org/way/243198140<br>> <br>> ....<br>> 243198140: 1 cycleway | official | null <br>> 243198140: 1 cycleway | official | null <br>> 243198140: 1 cycleway | official | null <br>> ..<br>> <br>> How can i fix this?<br>> Or is there something wrong in my style?<br>> <br>> Bernd<br>> <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>