<html><head></head><body><div dir="auto">Hi Gerd,<br></div>
<div dir="auto">Maybe it's better to try to merge these small ways as they anyway only creates 'ugly' roads. With increasing level of details in OSM I think mkgmap will need some preprocessing to generalise the data first. I'm not only thinking about these very small ways, but also have the lane-mapping and other mapping details, which are not important for Garmin maps. <br></div>
<div dir="auto">Henning </div>
<div class="gmail_quote" >On 23 Feb 2018, at 15:21, 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 have to think about this for a while. There are three very short ways connected in node 412440328:<br>way 130665733 : the northern node 1263658617 is close to a Garmin grid point, the sourthern node 412440328 is also closer to this grid point than to any other,<br>so both are rounded to the same grid point in the north, and finally it is ignored.<br>way 110722884: the way is only ~1m long and both nodes are far from any Garmin grid point. This is the way that is causing the trouble.<br>It is not removed, instead the initial rounding changes it to a ~3m way going north -> south.<br>way 130663479: the way has 3 nodes, and the one in the middle (node 1263658804) is rounded to the same coords as the ends of the bridge (way 103567847) and way 110722884, while the northern node 412440328 is moved up.<br><br>I've attached 4 files to document the problem. Please load into JOSM to visualize:<br>orig.osm.pbf: the original osm data <br>init_hp.osm.pbf: the road network as input to WrongAngleFixer in so called "high precision"<br>init_mu.osm.pbf: like init_hp.osm.pbf, but rounded to Garmin map units<br>after-WO_mu.osm.pbf: the result of WrongAngleFixer with coords rounded to Garmin map units<br>(please ignore the fact that the node ids in non-orig files are wrong)<br><br>Somehow I have to teach mkgmap that it would be better to ignore (also) way 110722884. I don't know yet what criteria I should use for that.<br>Normally we try to keep all routable ways, as they may contain access restrictions. <br><br>BTW: There is more such trouble near way 111528851.<br><br>ciao,<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: Donnerstag, 22. Februar 2018 20:19:15<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br><br>Perfect. I guess my maps are the only one causing bsod here on devices, but without the bug they would be fine...<br><br>On 22 Feb 2018 20:03, "Gerd Petermann" <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> wrote:<br>Hi Felix,<br><br>I can reproduce the problem with a small download around the way and just the --route option.<br>The problem seems to be in WrongAngleFixer, it says<br>"... all points of way <a href="http://www.openstreetmap.org/way/130665733">http://www.openstreetmap.org/way/130665733</a> are rounded to equal map units"<br>No idea why the way is not reduced to a single point, will investigate further.<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: Donnerstag, 22. Februar 2018 19:27:44<br>An: Development list for mkgmap<br>Betreff: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br><br>I just noticed that mkgmap sometimes creates a lot more routable roads for a certain stretch than actually defined in the style-file.<br><br><a href="https://www.openstreetmap.org/way/130665733">https://www.openstreetmap.org/way/130665733</a><br><br>should be only once as a routable line in my map, however it ends up 6 times!<br>Once is correct, but 5 iterations are actually the way from the south (3 times) and the way from the East (2 times). Now each of these ways should be created that often, however it should not overlay into this short stretch of way.<br><br>While doubling up ways can be beneficial for routing, having a way more than 5 times on top of each other let's Garmin devices crash on routing over them. Also it leads to detours - as it will not always route straight from the Way from South to the Way going to the West, but follow along after the intersection for 4.3m until hitting up north, then reversing and finally going to the way in the West.<br><br>I've uploaded the tile here:<br><a href="https://openmtbmap.org/gmapsupp_copied.img">https://openmtbmap.org/gmapsupp_copied.img</a><br><br><br>I'm pretty sure that with other style-files - the way will also be copied past the intersection and end up too often in the map for that 4.3m stretch...<br><br><br>I kinda guess it is related to it being so short - that place has some remarkable micro-mapping detail.<br>Or is this really expected?<br><br><br>If needed I can try to create a reduced style to only create that problem - but I think the bug should be obvious.<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></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>