logo separator

[mkgmap-dev] Error splitting SRTM data

From Thorsten Kukuk kukuk at suse.de on Wed Sep 14 08:56:13 BST 2011

On Wed, Sep 14, Carlos Dávila wrote:

> I get the error below splitting SRTM of Spain. My commands:

Known problem, only use google or search in the  mailing list archive.
My currentl solution is to use splitter-r123, that one still works and
I don't find any errors in the output.

> mono Srtm2Osm.exe -bounds1 35.99 -9.501 43.79 4.6 -step 10 -cat 100 20 
> -large -corrxy 0.0005 0.0005 -o srtm_peninsula.osm
> java -Xmx2000m -jar ../../osmosis/osmosis-0.24.1-java5/osmosis.jar --rx 
> enableDateParsing=no srtm_peninsula.osm --bounding-polygon 
> file="/home/carlos/SIG/10m-admin-0-countries/spain.poly" --wx srtm_spain.osm
> java -Xmx2500M -jar /home/carlos/Paquetes/mkgmap/dist/splitter.jar 
> --mapid=65140001 --mixed=true --max-nodes=6500000 --description="SRTM 
> Spain" srtm_spain.osm
> 
> Error:
> Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 
> (31250079) is greater than or equal to list size (31250001)
>          at 
> it.unimi.dsi.fastutil.objects.ObjectArrayList.get(ObjectArrayList.java:258)
>          at 
> uk.me.parabola.splitter.SparseInt2ShortMapInline.put(SparseInt2ShortMapInline.java:128)
>          at 
> uk.me.parabola.splitter.SparseInt2ShortMultiMap$Inner.put(SparseInt2ShortMultiMap.java:81)
>          at 
> uk.me.parabola.splitter.SparseInt2ShortMultiMap.put(SparseInt2ShortMultiMap.java:31)
>          at 
> uk.me.parabola.splitter.SplitProcessor.writeNode(SplitProcessor.java:209)
>          at 
> uk.me.parabola.splitter.SplitProcessor.processNode(SplitProcessor.java:118)
>          at uk.me.parabola.splitter.OSMParser.endElement(OSMParser.java:243)
>          at 
> uk.me.parabola.splitter.AbstractXppParser.parse(AbstractXppParser.java:57)
>          at uk.me.parabola.splitter.Main.processMap(Main.java:412)
>          at uk.me.parabola.splitter.Main.writeAreas(Main.java:368)
>          at uk.me.parabola.splitter.Main.split(Main.java:190)
>          at uk.me.parabola.splitter.Main.start(Main.java:118)
>          at uk.me.parabola.splitter.Main.main(Main.java:107)
> Any idea how to get it work?
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-- 
Thorsten Kukuk, Project Manager/Release Manager SLES
SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)



More information about the mkgmap-dev mailing list