[mkgmap-dev] [PATCH v3] - Sub-optimal fix to limit excessive inter-node arc lengthFrom Mark Burton markb at ordern.com on Tue Apr 28 14:18:21 BST 2009
Hi Marko,
> I identified it with this patch:
>
> + String wayName = way.getName(); // only use for diagnostic messa
> ges
> + if(wayName == null) {
> + wayName = way.getTag("ref");
> + if(wayName == null)
> + wayName = way.toString();
> + }
>
> The way.toString() spits out the latitude and longitude, among other
> things:
>
> SEVERE (StyledConverter): Way WAY: null(67.09045886993408/23.672125339508057) [note=In public domain (original Kekoil work),note=*,source=Landsat,source=*,highway=unclassified,highway=*] contains a segment that is longer than 16383 (routing will fail for that way)
>
> With JOSM, I determined that it probably is this way:
>
> http://www.openstreetmap.org/browse/way/24731243/history
OK.
> Could the error message disclose the unit? 16383 doesn't say anything to me.
Well, I am confused about the units as well given that Coord.distance()
supposedly returns a value in metres but then RouteArc scales the arc
length with convertMeters() (sic).
> How could the problem be fixed in the map data? Split the way into two in
> the middle?
Yes, or into some smaller segments.
> If this only affects the routing along this way, I think I will just ignore
> it for now. It seems to be a minor road in the almost unpopulated areas of
> Finland.
OK.
Cheers,
Mark
More information about the mkgmap-dev mailing list |