<div dir="ltr">I think merging is fine - maybe just add restrictions to the adjoining ways if preset. And it really should not happen that ways are merged past a junction - I now think this happens in some more places. Because it's not the first time I notice that a routing turns 180° to return to the junction to actually turn. <div>And maybe could there be a filter that there are never more than 5 routable ways from continue command? From 6 onwards it crashes devices. Maybe even from 5 onwards. 1 routable original and 3 routable overlays are definitely fine. (Basecamp/Mapsource don't care - it only crashes GPS devices).</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 23 February 2018 at 09:12, Henning Scholland <span dir="ltr"><<a href="mailto:osm@hscholland.de" target="_blank">osm@hscholland.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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"><span class="">On 23 Feb 2018, at 15:21, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.<wbr>com</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<pre class="m_3284807099321800918blue">Hi Felix,<br><br><span class="">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></span><span class="">Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><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" <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.<wbr>com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_<wbr>muenchen@hotmail.com</a>>> 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" target="_blank">http://www.openstreetmap.org/<wbr>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></span><span class="">Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><wbr>>><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" target="_blank">https://www.openstreetmap.org/<wbr>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" target="_blank">https://openmtbmap.org/<wbr>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" target="_blank">Openmtbmap.org</a> & <a href="http://VeloMap.org" target="_blank">VeloMap.org</a><br>Schusterbergweg 32/8<br>6020 Innsbruck<br>Austria - Österreich<br><hr><br></span><span class="">mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/listinfo/mkgmap-dev</a><br></span></pre><pre class="m_3284807099321800918blue"><hr><span class=""><br>mkgmap-dev mailing list<br><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/listinfo/mkgmap-dev</a></span></pre></blockquote></div></div><br>______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div>Schusterbergweg 32/8<br></div><div>6020 Innsbruck<br></div></div>Austria - Österreich</div></div></div></div>
</div>