logo separator

[mkgmap-dev] Splitter issue

From Jeffrey Ollie jeff at ocjtech.us on Wed Feb 16 15:57:33 GMT 2011

On Sun, Nov 7, 2010 at 3:05 PM, Nakor <nakor.osm at gmail.com> wrote:
>
> 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)

Has anyone had a chance to look into this?  I'm running into a similar
issue when trying to split a .osm.pbf extract of the continental US
generated by osmosis 0.38 from last week's planet file.  I'm going to
try and look into this a bit more but it might take a while as each
run of the splitter takes 90+ minutes for me.

I'm using splitter rev 161 from the crosby_integration branch.

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

-- 
Jeff Ollie



More information about the mkgmap-dev mailing list