
Hi Andrzej, the problem is this: All routines that prepare the road data are calculating the coordinates in map units (resolution 24). The rounding to resolution 23 happens later. This rounding can produce arcs with two equal points, and that is known to cause crashes. It seems that I was a bit naive to think that routing on resolution < 24 can be done that easy :-( Now I see at least these problems: - we need a factory method that creates Coord instances rounded to the highest used resolution, in your case 23. - we have to make sure that we don't create bounding boxes with coordinates in higher resolution anywhere - maybe we have to add extra logic regarding tile boundaries I'd like to finish the work on the high-prec-coord branch first, so my motivation is low. this really a useful feature? Gerd
Date: Sun, 19 Jan 2014 21:06:16 -0800 From: gpetermann_muenchen@hotmail.com To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] Mapsource crashes while calculating a route
Hi Andrzej,
thanks, I can reproduce the error, will investigate later.
Gerd
popej wrote
Hi Gerd,
here simple example with 23-bit level 0, where Mapsource crashes.
test3-l.osm.pbf - small data with highways only, route23.gpx - route which makes Mapsource crash.
I create map executing mkgmap like that: java -jar mkgmap.jar --route --levels=0:23,1:22,2:20,3:18 test3-l.osm.pbf
-- Best regards, Andrzej
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
test3-l.osm.pbf (5K) <http://gis.19327.n5.nabble.com/attachment/5793669/0/test3-l.osm.pbf> route23.gpx (1K) <http://gis.19327.n5.nabble.com/attachment/5793669/1/route23.gpx>
-- View this message in context: http://gis.19327.n5.nabble.com/Mapsource-crashes-while-calculating-a-route-t... Sent from the Mkgmap Development mailing list archive at Nabble.com. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev