logo separator

[mkgmap-dev] Splitter Error

From Ralf Kleineisel ralf at kleineisel.de on Tue Sep 8 19:07:09 BST 2009

Hi,

when I try to split a OSM file which contains only contour lines made
with srtm2osm (1.8.14.10) I get this error:

[splitter-r83]$java -Xmx2048M -jar splitter.jar --mapid=21000001
--mixed=yes --cache=./cache/ --max-nodes=50000 srtm_test.osm
Time started: Tue Sep 08 20:03:15 CEST 2009
mapid = 21000001
mixed = yes
cache = ./cache/
max-nodes = 50000
Checking for an existing cache and verifying contents...
No suitable cache was found. A new cache will be created to speed up the
splitting stage
Map is being split for resolution 13:
 - area boundaries are aligned to 0x800 map units
 - areas are multiples of 0x1000 map units wide and high
Processing srtm_test.osm
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 14
        at uk.me.parabola.splitter.Convert.parseDouble(Convert.java:163)
        at uk.me.parabola.splitter.OSMParser.startNode(OSMParser.java:137)
        at uk.me.parabola.splitter.OSMParser.startElement(OSMParser.java:98)
        at
uk.me.parabola.splitter.AbstractXppParser.parse(AbstractXppParser.java:42)
        at uk.me.parabola.splitter.Main.processOsmFiles(Main.java:334)
        at uk.me.parabola.splitter.Main.processMap(Main.java:323)
        at uk.me.parabola.splitter.Main.calculateAreas(Main.java:225)
        at uk.me.parabola.splitter.Main.split(Main.java:132)
        at uk.me.parabola.splitter.Main.main(Main.java:91)

The file is rather small, just 1x1 deg, 165 MB.

Any ideas?



More information about the mkgmap-dev mailing list