<div dir="ltr">Had no time the last 3 days, I'm right now testing some things will post back in a couple of hours....</div><div class="gmail_extra"><br><div class="gmail_quote">On 27 February 2018 at 12:01, Gerd Petermann <span dir="ltr"><<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Felix,<br>
<br>
any feedback?<br>
<br>
Gerd<br>
<br>
______________________________<wbr>__________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a>> im Auftrag von Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.<wbr>com</a>><br>
Gesendet: Samstag, 24. Februar 2018 10:36:29<br>
<div><div class="h5">An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br>
<br>
Hi Felix,<br>
<br>
maybe this helps already:<br>
Attached is a small patch that changes StyledConverter so that it only accepts 4 routable ways for one OSM way.<br>
Any further routable way for the same OSM way creates just a warning.<br>
<br>
Gerd<br>
<br>
<br>
______________________________<wbr>__________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a>><br>
Gesendet: Freitag, 23. Februar 2018 19:08:45<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] Bug in Road Merging - actually doubling roads.<br>
<br>
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.<br>
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).<br>
<br>
On 23 February 2018 at 09:12, Henning Scholland <<a href="mailto:osm@hscholland.de">osm@hscholland.de</a><mailto:<a href="mailto:osm@hscholland.de">osm@<wbr>hscholland.de</a>>> wrote:<br>
Hi Gerd,<br>
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>
Henning<br>
On 23 Feb 2018, at 15:21, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.<wbr>com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_<wbr>muenchen@hotmail.com</a>>> wrote:<br>
<br>
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>
______________________________<wbr>__<br>
<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><wbr>>><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">gpetermann_muenchen@hotmail.<wbr>com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_<wbr>muenchen@hotmail.com</a>><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com">g<wbr>petermann_muenchen@hotmail.com</a><wbr><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@<wbr>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" rel="noreferrer" 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>
______________________________<wbr>__<br>
<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@<wbr>lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkg<wbr>map-dev-bounces@lists.mkgmap.<wbr>org.uk</a>>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><wbr>><mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.<wbr>com</a><mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@<wbr>gmail.com</a>>>><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" rel="noreferrer" 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" rel="noreferrer" 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 - Openmtbmap.org<<a href="http://Openmtbmap.org" rel="noreferrer" target="_blank">http://<wbr>Openmtbmap.org</a>> & VeloMap.org<<a href="http://VeloMap.org" rel="noreferrer" target="_blank">http://VeloMap.org</a><wbr>><br>
Schusterbergweg 32/8<br>
6020 Innsbruck<br>
Austria - Österreich<br>
______________________________<wbr>__<br>
<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-<wbr>dev@lists.mkgmap.org.uk</a><<wbr>mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>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>
<br>
______________________________<wbr>__<br>
<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>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>
<br>
______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>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>
<br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
Schusterbergweg 32/8<br>
6020 Innsbruck<br>
Austria - Österreich<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>
</div></div><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>