Re: [mkgmap-dev] Problem routing over very short roads
Mark Burton wrote: Hi Felix, Do you see any solution to this problem? Sorry, I don't have a plan at this time. I think if a way is shorter than 3.4m we get the problem. I don't think it is because of the duplicate ways. It's more subtle than that because I could make a small map (just a few 100ms height and width) that included that way and mapsource was quite happy with it but when I processed your big file, it didn't like it - so either the problem is related to the density of stuff around or the size of the area being processed or something... Could we maybe have a filter that joins such tiny roads to the ones it is connected too? Well, if it becomes zero length that will happen anyway because that's what the new remove-short-arcs option does. What I could do is extend that code to allow the min distance to be specified so you could say --remove-short-arcs=3.5 and it would zap all arcs under than length but without the distance, i.e. just --remove-short-arcs would only zap zero length arcs. I will produce a patch to do that, should be quick to do. Would that connect all notes that are closer than 3.5m together, or only nodes that are connected to each other? My thinking is that if in case a road crosses another on a bridge, and now on the top road a node lies within 3.5m of the distance of the road below the brige, and then they are joined, this patch would only be good for experimenting, but not for really usable maps. If it only deletes nodes that are connected anyhow than I think maps will be quite usable. I suspect the same error to be actually taking place quite often (about say every 10. route calculation of aerial distance 30-40km ). Though I would have to closely watch autorouting routes more often. Felix Cheers, Mark ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Problem routing over very short roads
Hi Felix, > Do you see any solution to this problem? Sorry, I don't have a plan at this time. > I think if a way is shorter than 3.4m we get the problem. I don't think > it is because of the duplicate ways. It's more subtle than that because I could make a small map (just a few 100ms height and width) that included that way and mapsource was quite happy with it but when I processed your big file, it didn't like it - so either the problem is related to the density of stuff around or the size of the area being processed or something... > Could we maybe have a filter that joins such tiny roads to the ones it > is connected too? Well, if it becomes zero length that will happen anyway because that's what the new remove-short-arcs option does. What I could do is extend that code to allow the min distance to be specified so you could say --remove-short-arcs=3.5 and it would zap all arcs under than length but without the distance, i.e. just --remove-short-arcs would only zap zero length arcs. I will produce a patch to do that, should be quick to do. Cheers, Mark ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Problem routing over very short roads
Do you see any solution to this problem? I think if a way is shorter than 3.4m we get the problem. I don't think it is because of the duplicate ways. Could we maybe have a filter that joins such tiny roads to the ones it is connected too? Felix Mark Burton wrote: Hi Felix, I have just uploaded my source data, try your calculation on it, I think it will fail too for you as well. http://openmtbmap.x-nation.de/maps/Debug/63660008.osm.gz That's more like it. With that map, the little segment at the N of the bridge weirds out. If you check the diagnostic output, you will see that mkgmap is not deleting that way so the end points have not resolved to the same coordinates (to make it zero length) but maybe mapsource doesn't like ways that short and is barfing on it. Cheers, Mark ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Problem routing over very short roads
> okay, that might be the problem. In potlatch I could not discover this. It's a common mistake. I had some problems myself with these multiple copies of ways. This could help: http://wiki.openstreetmap.org/wiki/Stammtisch_Hannover_Tipps#Doppelte_Wege_finden (German) http://wiki.openstreetmap.org/wiki/Potlatch/Keyboard_shortcuts (English, look for '/' key description) Markus > I did touch the node however already, deleting and and re-adding it to > make sure it's connected, maybe It's now longer than 3.4m. It was just > around 3m before. > I have just uploaded my source data, try your calculation on it, I think > it will fail too for you as well. > > http://openmtbmap.x-nation.de/maps/Debug/63660008.osm.gz > > Mark Burton wrote: > > Just discovered a weirdness in that map. > > > > The short segment at the northern end of the bridge is actually two > > ways (one on top of the other). Using the middle mouse button in josm > > you can see that. Perhaps, this is the cause of your problems. > > > > Cheers, > > > > Mark > > ___ > > mkgmap-dev mailing list > > mkgmap-dev@lists.mkgmap.org.uk > > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev > > > > > ___ > mkgmap-dev mailing list > mkgmap-dev@lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Problem routing over very short roads
Hi Felix, > I have just uploaded my source data, try your calculation on it, I think > it will fail too for you as well. > > http://openmtbmap.x-nation.de/maps/Debug/63660008.osm.gz That's more like it. With that map, the little segment at the N of the bridge weirds out. If you check the diagnostic output, you will see that mkgmap is not deleting that way so the end points have not resolved to the same coordinates (to make it zero length) but maybe mapsource doesn't like ways that short and is barfing on it. Cheers, Mark ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Problem routing over very short roads
okay, that might be the problem. In potlatch I could not discover this. I did touch the node however already, deleting and and re-adding it to make sure it's connected, maybe It's now longer than 3.4m. It was just around 3m before. I have just uploaded my source data, try your calculation on it, I think it will fail too for you as well. http://openmtbmap.x-nation.de/maps/Debug/63660008.osm.gz Mark Burton wrote: Just discovered a weirdness in that map. The short segment at the northern end of the bridge is actually two ways (one on top of the other). Using the middle mouse button in josm you can see that. Perhaps, this is the cause of your problems. Cheers, Mark ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
Re: [mkgmap-dev] Problem routing over very short roads
Just discovered a weirdness in that map. The short segment at the northern end of the bridge is actually two ways (one on top of the other). Using the middle mouse button in josm you can see that. Perhaps, this is the cause of your problems. Cheers, Mark ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev