logo separator

[mkgmap-dev] Splitter issue

From Nakor nakor.osm at gmail.com on Sun Nov 7 21:05:24 GMT 2010

   Hello,

I was splitting the file from 
http://download.geofabrik.de/osm/north-america/us-west.osm.pbf and got 
the following error a couple times:

Exception in thread "worker-0" 
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
     at java.lang.String.getChars(String.java:860)
     at uk.me.parabola.splitter.OSMWriter.writeString(OSMWriter.java:203)
     at uk.me.parabola.splitter.OSMWriter.write(OSMWriter.java:98)
     at 
uk.me.parabola.splitter.SplitProcessor$OSMWriterWorker.processElement(SplitProcessor.java:294)
     at 
uk.me.parabola.splitter.SplitProcessor$OSMWriterWorker.run(SplitProcessor.java:327)
     at java.lang.Thread.run(Thread.java:636)
Exception in thread "worker-1" 
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
     at java.lang.String.getChars(String.java:860)
     at uk.me.parabola.splitter.OSMWriter.writeString(OSMWriter.java:203)
     at uk.me.parabola.splitter.OSMWriter.write(OSMWriter.java:105)
     at 
uk.me.parabola.splitter.SplitProcessor$OSMWriterWorker.processElement(SplitProcessor.java:294)
     at 
uk.me.parabola.splitter.SplitProcessor$OSMWriterWorker.run(SplitProcessor.java:327)
     at java.lang.Thread.run(Thread.java:636)

If I first convert pbf to osm using osmosis then split everything goes fine.

Where does it come from?

   Thanks,

N.



More information about the mkgmap-dev mailing list