<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>thanks for reporting. The problem is fixed with r3118.<br>A flag was not set early enough. This only caused problems with enabled assertions.<br><br>Gerd<br><br><div>> Date: Fri, 4 Jul 2014 10:12:36 +0200<br>> From: ligfietser@online.nl<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: [mkgmap-dev] AssertionError on turn restriction<br>> <br>> When I enable assertions (-ea) in my java command, mkgmap-r3300 is not able to produce one tile and gives an java.lang.AssertionError.<br>> <br>> I found out that the problem was this turn restriction relation, with <br>> type=restriction:motorcar<br>> restriction=only_straight_on<br>> http://www.openstreetmap.org/relation/3490966<br>> <br>> In my relation style file I have the following line, to ignore those restrictions in my bike map:<br>> type=restriction:motorcar {delete type}<br>> <br>> I dont know if it's a bug in mkgmap or in my styles but it will produce no errors without this line, but then the restriction are applied and that's not what is intended.<br>> <br>> If I change the line into <br>> type=restriction:motorcar {delete 'type=restriction:motorcar'}<br>> then I get no assertion error.<br>> <br>> Now maybe this relation is a bad case because mkgmap seems to ignore it at all (via ways instead of via-points?) so I have adapted the relation a bit in JOSM to make it work with one 'from' way, one via-point and one 'to' way.<br>> http://mijndev.openstreetmap.nl/~ligfietser/test/map.osm<br>> <br>> I use in my relation file this line<br>> type=restriction:motorcar {delete 'type=restriction:motorcar'}<br>> <br>> Result is that in motorcar mode, the turn restriction is still active. So there is still something missing in the mkgmap code, also {delete restriction} didnt help here either, looks like that those lines are completely ignored in the relation file here?<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>