Error splitting SRTM data

I get the error below splitting SRTM of Spain. My commands: 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?

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@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)

El 14/09/11 09:56, Thorsten Kukuk escribió:
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. Sorry, I didn't remember about this issue. Compiled splitter r123 and processing... Thanks for the info.

Hi, Am 14.09.2011 09:56, schrieb Thorsten Kukuk:
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.
Where can I download a compiled splitter-r123? Thanks Josef -- PGP Schlüssel: 311D1055 http://keyserver.pgp.com

Hi, On Wed, Sep 14, Carlos Dávila wrote:
I get the error below splitting SRTM of Spain. My commands: 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
Meanwhile I'm useing phyghtmap instead of Srtm2Osm. Since I don't merge the SRTM data with the normal OSM data, you can start with a very low node id. As result, you can use all the current tools on the data. And phyghtmap needs only a fraction of memory Srtm2Osm needs for the same area. Ok, phyghtmap, too, creates only v0.5 data. Haven't done anything with python since several years, but to change to should be that tricky. Only version and timestamp attributes needs to be added, else osmosis is complaining. Thorsten -- 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)
participants (3)
-
Carlos Dávila
-
Josef Latt
-
Thorsten Kukuk