[mkgmap-dev] Splitter Error
From Chris Miller chris.miller at kbcfp.com on Wed Sep 9 13:33:00 BST 2009
Hi Paul, I'd used Ralf's osm file as a test case to solve this problem, but seems like even that didn't go far enough. I have no idea why but the numbers in your file contain several digits more precision than a 64bit floating point number can even represent. I've added another check so that any digits beyond what is sane are now safely ignored. Sorry for the trouble and thanks for letting me know. It should be solid now but if you still have a problem please send through your test file and I'll take another look. Chris P> Sorry Chris but unless I've missed something then..... P> P> paul at paul-pc:~/Maps/tile-splitter/splitter-r88/dist> java -jar P> splitter.jar --mapid=70020001 --cache=./ --mixed P> ../../../srtm2osm/Srtm2Osm-1.7.10.0/fullukcontours.osm P> Time started: Wed Sep 09 11:48:04 BST 2009 P> mapid = 70020001 P> cache = ./ P> Checking for an existing cache and verifying contents... P> No suitable cache was found. A new cache will be created to speed up P> the P> splitting stage P> Map is being split for resolution 13: P> - area boundaries are aligned to 0x800 map units P> - areas are multiples of 0x1000 map units wide and high P> Processing ../../../srtm2osm/Srtm2Osm-1.7.10.0/fullukcontours.osm P> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: P> 19 P> at P> uk.me.parabola.splitter.Convert.parseDouble(Convert.java:171) P> at P> uk.me.parabola.splitter.OSMParser.startNode(OSMParser.java:138) P> at P> uk.me.parabola.splitter.OSMParser.startElement(OSMParser.java:98) P> at P> uk.me.parabola.splitter.AbstractXppParser.parse(AbstractXppParser.jav P> a:42) P> at P> uk.me.parabola.splitter.Main.processOsmFiles(Main.java:346) P> at uk.me.parabola.splitter.Main.processMap(Main.java:335) P> at uk.me.parabola.splitter.Main.calculateAreas(Main.java:240) P> at uk.me.parabola.splitter.Main.split(Main.java:148) P> at uk.me.parabola.splitter.Main.main(Main.java:93) P> The input file is 3.9GB if that helps and r88 runs against the very P> small test file I created when testing my script. If you need any P> other info just ask. P> P> Cheers P> P> Paul P>
- Previous message: [mkgmap-dev] Splitter Error
- Next message: [mkgmap-dev] Splitter Error
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list