<html><head></head><body><div dir="auto">Hi Gerd, <br></div>
<div dir="auto">I would ignore them and write a warning/info.<br></div>
<div dir="auto">Of course mkgmap could try to handle it, but I don't think it's worth. Better fix it in the data,which anyway needs to be done. <br><br></div>
<div dir="auto">Henning</div>
<div class="gmail_quote" >On 4 Apr 2018, at 17:11, 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>well, you started to mention route relations:<br>"The case of overlapping ways being part of different route relations on the other hand I've seen quite often - in that case I think it's best to just add all route relations to one way, and remove the other one."<br>My understanding is that the code in mkgmap doesn't have to care about route relations (e.g. type=route, route=bicycle), this is done in the style. With your style those might cause more trouble because you add more routable lines for the members but the current overlap remover will only remove segments with more or less identical attributes.<br>What you suggest requires a completely different approach, right?<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, 4. April 2018 10:58:43<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] overlapping highways and route restrictions<br><br>yes I know - but even though both ways you linked have different turn restriction ID - the content of the turn restriction is identical (only straight on).<br><br>On 4 April 2018 at 10:54, Gerd Petermann <gpetermann_muenchen@hotmail.com<mailto:gpetermann_muenchen@hotmail.com>> wrote:<br>Hi Felix,<br><br>yes, 1) would handle the case in my example.<br>Just to make sure: I meant turn restrictions, not route relations.<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: Mittwoch, 4. April 2018 10:48:20<br>An: Development list for mkgmap<br>Betreff: Re: [mkgmap-dev] overlapping highways and route restrictions<br><br>For my maps 1) is enough - and warning not even needed. I think it's hard to find out what the outcome should be.<br>The case of overlapping ways being part of different route relations on the other hand I've seen quite often - in that case I think it's best to just add all route relations to one way, and remove the other one.<br><br>The example you found here - I think is quite possible to solve - both restriction relations are identical - so one way including the restriction relation can be removed, the route relations copied over. If the restriction is having different rules - then however I don't think we can solve it correctly (well an exception is if we have overlapping ways in OSM which are oneway and opposite to each other - this is a rare case where overlapping ways are not to be removed I guess).<br><br><br><br>On 4 April 2018 at 10:39, Gerd Petermann <GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com><mailto:GPetermann_muenchen@hotmail.com<mailto:GPetermann_muenchen@hotmail.com>>> wrote:<br>Hi all,<br><br>please help, I just try to make up my mind what mkgmap should do when it finds overlapping road segments and<br>one (or both) of the overlaps is a part of a (valid) restriction relation. This doesn't happen very often, but it is possible.<br><br>The attached example contains these two overlapping ways, and both are members of (different) restriction relations:<br><a href="https://www.openstreetmap.org/way/48218016">https://www.openstreetmap.org/way/48218016</a><br><a href="https://www.openstreetmap.org/way/48218008">https://www.openstreetmap.org/way/48218008</a><br><br>(I did not try what the trunk version produces for this mess)<br><br>I see different possibilities:<br>1) ignore route restrictions when removing overlaps, remove those which are invalid after overlapping segments were removed and log a warning<br>2) ignore overlaps when the ways are members of restriction relations<br>3) complex: remove overlaps but try to "repair" the restriction<br><br>I am currently trying to implement 3) but it looks too complicated for such a rare case and in the end we have a clear case of wrong input data here.<br>What do you think?<br><br>Gerd<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><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><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><br><br></pre></blockquote></div></body></html>