<html><head></head><body><div dir="auto">Hi Gerd<br></div>
<div dir="auto">Doesn't it cause problems at roundabouts for messages like 'leave at 3rd exit'<br></div>
<div dir="auto">Henning </div>
<div class="gmail_quote" >On 22 Mar 2018, at 23:56, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">Hi Felix,<br><br>I tried to remove duplicate arcs but that is probably not allowed. Mapsource says that there is an error in the map product when I try to route over the remaining<br>arcs. Maybe not always but it doesn't look promising.<br>I've noted that even with the default style you get many duplicated arcs, for example here:<br>The oneway residential road<br><a href="https://www.openstreetmap.org/way/183285165">https://www.openstreetmap.org/way/183285165</a><br>is overlapped by hw=residential + area=yes<br><a href="https://www.openstreetmap.org/way/393299955">https://www.openstreetmap.org/way/393299955</a><br>Interesting is that Mapsource seems to ignore the arcs produced way 393299955 because it will not route in the wrong<br>direction of the oneway.<br><br>So, I'm back at somehow changing the heading values now.<br>This turned out to be quite simple. We already have code in AngleChecker to modify heading values so that junctions don't show sharp angles.<br>Please try attached patch in combination with your version of count-same-bearing-v2.patch.<br>This patch changes groups of arcs with equal initial heading (delta < 1°) so that they are stored with slightly different heading values.<br>You should see no more messages from the count patch and - crossing my fingers - better routing.<br><br>Gerd<br><br>
<hr><br>Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Felix Hartmann <extremecarver@gmail.com><br>Gesendet: Mittwoch, 21. März 2018 14:01:49<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br><br>Okay - 5 Arcs are sometimes causing problems too - but it's like a 50/50 chance.<br>Also if at the very beginning of a route - there are 6 Arcs - then the Oregon will somehow just skip it and get into the route. So actually some of the samples that follow work, because of that. In general even if one arc is related to oneway line, it seems that both directions are affected.<br><br>4 Arcs seems to be always safe. Tested a couple and it never failed.<br><br><a href="https://openmtbmap.org/More_Tests.gdb">https://openmtbmap.org/More_Tests.gdb</a><br><br><br><br><br><br>On 21 March 2018 at 10:23, Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> wrote:<br>Hi Felix,<br><br>okay, I can reproduce the problem with your map and gdb file on my Oregon. If I got that right overlapping highways are likely to cause multiple identical arcs.<br>I think it should be rather easy to detect and remove them (together with the reverse arc), so I'll try to code that first.<br>Regarding the "funny" example that doesn't break routing:<br>I'll have a closer look. Maybe it's also the order of the arcs that matters, maybe this one works because there are only two nodes with dulicate arcs.<br>I think the other examples contain more.<br><br>Gerd<br><br>
<hr><br>Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>> im Auftrag von Felix Hartmann <extremecarver@gmail.com<mailto:extremecarver@gmail.com>><br>Gesendet: Dienstag, 20. März 2018 23:35:06<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br><br>Just for testing to make it much easier - here are the routes: <a href="https://openmtbmap.org/Test_routes.gdb">https://openmtbmap.org/Test_routes.gdb</a><br><br>On 20 March 2018 at 23:19, Felix Hartmann <extremecarver@gmail.com<mailto:extremecarver@gmail.com><mailto:extremecarver@gmail.com<mailto:extremecarver@gmail.com>>> wrote:<br>The new patch seems to work pretty well - most ways that are supposedly not routable (according to my understanding so far if there are 6 arcs or more it will break) are actually broken.<br><br>Map (just unpack the lzma installer: <a href="https://openmtbmap.org/mtbitaly_test.exe">https://openmtbmap.org/mtbitaly_test.exe</a><br><br>All broken - in simulation routing gets stuck.:<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670040.osm.pbf: 8 or more arcs with the same initial bearing, expect routing problems at 44.528092<tel:528092><tel:528092<tel:528092>>,7.857529 when routing to 132░ (<a href="http://www.openstreetmap.org/browse/way/310376420">http://www.openstreetmap.org/browse/way/310376420</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670040.osm.pbf: 7 or more arcs with the same initial bearing, expect routing problems at 44.528092<tel:528092><tel:528092<tel:528092>>,7.857529 when routing to 132░ (<a href="http://www.openstreetmap.org/browse/way/310376420">http://www.openstreetmap.org/browse/way/310376420</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670068.osm.pbf: 7 or more arcs with the same initial bearing, expect routing problems at 45.984356,9.206016 when routing to 203░ (<a href="http://www.openstreetmap.org/browse/way/273387447">http://www.openstreetmap.org/browse/way/273387447</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.750019,12.707582 when routing to 189░ (<a href="http://www.openstreetmap.org/browse/way/457631339">http://www.openstreetmap.org/browse/way/457631339</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.749947,12.707799 when routing to 294░ (<a href="http://www.openstreetmap.org/browse/way/457631339">http://www.openstreetmap.org/browse/way/457631339</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.749966,12.707912 when routing to 258░ (<a href="http://www.openstreetmap.org/browse/way/457631339">http://www.openstreetmap.org/browse/way/457631339</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.746202,12.752692 when routing to 109░ (<a href="http://www.openstreetmap.org/browse/way/303828386">http://www.openstreetmap.org/browse/way/303828386</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.746165,12.752832 when routing to 99░ (<a href="http://www.openstreetmap.org/browse/way/303828386">http://www.openstreetmap.org/browse/way/303828386</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.746144,12.753007 when routing to 113░ (<a href="http://www.openstreetmap.org/browse/way/303828386">http://www.openstreetmap.org/browse/way/303828386</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.746083,12.753196 when routing to 117░ (<a href="http://www.openstreetmap.org/browse/way/303828386">http://www.openstreetmap.org/browse/way/303828386</a>)<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.746027,12.753341 when routing to 130░ (<a href="http://www.openstreetmap.org/browse/way/303828386">http://www.openstreetmap.org/browse/way/303828386</a>)<br><br>Funnily this one works and routing is not broken:<br>SEVERE (RouteNode): E:\openmtbmap\maps\63670002.osm.pbf: 6 or more arcs with the same initial bearing, expect routing problems at 41.903471,13.182355 when routing to 245░ (<a href="http://www.openstreetmap.org/browse/way/519285722">http://www.openstreetmap.org/browse/way/519285722</a>)<br><br><br>I'll test some more tomorrow or in the upcoming days. I always tested both directions just to make sure and could not see a difference.<br>All of them are based on OSM mapping error with (several) ways overlapping each other. If mkgmap could drop identical ways (disrespecting the name field, or even better remove ways that have the same routing profile) it would already solve all but the first problematic way.<br><br>On 20 March 2018 at 20:44, Felix Hartmann <extremecarver@gmail.com<mailto:extremecarver@gmail.com><mailto:extremecarver@gmail.com<mailto:extremecarver@gmail.com>>> wrote:<br>Yes it only happens on device. Simulating routing via: <a href="http://www.openstreetmap.org/browse/way/310376420">http://www.openstreetmap.org/browse/way/310376420</a> will in this case not switch off the device, but just get stuck. Map moving forward/backwards slightly.<br>Here you could reproduce it by simply doubling the routable lines - one routable line for highway=path, another one for the relation route=hiking or route=mtb. 6 Routable lines (which are not oneway) with exactly the same way on top of each other are enough to reliably cause the Oregon 600 to break routing in my experience.<br><br>The arc list actually helped me to identify some common problems in my style so I could reduce some routable lines - but in my experience adding several lines on top of each other - with different road_class/road_speed helps prioritise those ways. For highways this is not needed - as they are straight. But with mountain pathes - often a road_class 4, road_speed 2 is already too high importance to be chosen for curvy pathes, so adding a road_class 3, road_speed 1, and road_class 1, road_speed 0 will help to prioritize such ways. Also adding relations as routable lines often helps in so far that at least according to gpsmapedit they have much less routable nodes than the underlying way - so maybe that helps prioritizing them too?<br><br><br>Felix<br><br>On 20 March 2018 at 17:30, Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com><mailto:gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>>> wrote:<br>Hi Felix,<br><br>well, up to now I thought that you want to fix the problem in your style and just need help to find out where it happens.<br>I still don't understand why your style adds so many routable lines, in my eyes this is an errpr on your side.<br>But you may be right, mkgmap might be able to change the bearing values of an arc when there are too many equal ones.<br>You never told me what exactly I should do to reproduce a problem. In previous posts you wrote about crashes, now you<br>mention broken routing. I guess this still only happens on the device?<br><br>Gerd<br><br>
<hr><br>Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk><mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk<mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk>>> im Auftrag von Felix Hartmann <extremecarver@gmail.com<mailto:extremecarver@gmail.com><mailto:extremecarver@gmail.com<mailto:extremecarver@gmail.com>>><br>Gesendet: Dienstag, 20. März 2018 13:23:37<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br><br>well I think if ways are overlapping which have identical nodes it should be possible to throw away according to say this prinicple:<br>a) identical tags (except name which is not important) - throw away the copy/copies. I think here it is clear the copies are not needed.<br>b) identical tags (except name) plus more tags.<br>Eg way 1 has: key1=a key2=b way 2 has key1=a, key2=b key3=c. So throw away way1.<br>If there is however<br>way 1 has: key1=a key2=b key3=c way 2 has key1=a, key2=b key4=d. it is more complicated but it could still be merged to a single way consisting of key1=a, key2=b, key3=c, key4=d<br>if<br>way 1 has: key1=a key2=b key3=c way 2 has key1=a, key2=b key3=d we could keep both ways, or throw away one of them - but yeah then it is not clear which one so better keep.<br><br><br>For the problems related to <a href="http://www.openstreetmap.org/browse/way/310376420">http://www.openstreetmap.org/browse/way/310376420</a><br>and the other 2 ways. Following a) removes one copy. Following rule b) would actually get rid of the second copy and now information/detail will be lost.<br><br><br>I'll try the new patch and see if I can find out more about problems.<br><br><br>BTW - would it not be better to just use a test map for finding the error? I'm pretty sure any 6 routable roads on top of each other (identical direction) cause routing to break on Oregon 600. As soon as some way is slightly different angle - it is fine.<br><br><br>
<hr><br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><mailto:mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk>><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br><br><br><br>--<br>Felix Hartman - <a href="http://Openmtbmap.org">Openmtbmap.org</a> & <a href="http://VeloMap.org">VeloMap.org</a><br>Schusterbergweg 32/8<br>6020 Innsbruck<br>Austria - Österreich<br><br><br><br>--<br>Felix Hartman - <a href="http://Openmtbmap.org">Openmtbmap.org</a> & <a href="http://VeloMap.org">VeloMap.org</a><br>Schusterbergweg 32/8<br>6020 Innsbruck<br>Austria - Österreich<br><br><br><br>--<br>Felix Hartman - <a href="http://Openmtbmap.org">Openmtbmap.org</a> & <a href="http://VeloMap.org">VeloMap.org</a><br>Schusterbergweg 32/8<br>6020 Innsbruck<br>Austria - Österreich<br>
<hr><br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<mailto:mkgmap-dev@lists.mkgmap.org.uk><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br><br><br><br>--<br>Felix Hartman - <a href="http://Openmtbmap.org">Openmtbmap.org</a> & <a href="http://VeloMap.org">VeloMap.org</a><br>Schusterbergweg 32/8<br>6020 Innsbruck<br>Austria - Österreich<br></pre>
<pre class="blue"> <hr><br>mkgmap-dev mailing list<br>mkgmap-dev@lists.mkgmap.org.uk<br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre></blockquote></div></body></html>