[osmosis-dev] Reading PBF without author information fails
WanMil
wmgcnfg at web.de
Wed Jul 4 18:42:37 BST 2012
C:\Garmin\Karten\Daten\africa\20120508>%OSMOSISDIR%\bin\osmosis.bat
--read-pbf f
ile=africa_author.osm.pbf --write-pbf file=africa_osmosis.osm.pbf
Jul 04, 2012 7:36:31 PM org.openstreetmap.osmosis.core.Osmosis run
Information: Osmosis Version 0.40.1
Jul 04, 2012 7:36:31 PM org.openstreetmap.osmosis.core.Osmosis run
Information: Preparing pipeline.
Jul 04, 2012 7:36:31 PM org.openstreetmap.osmosis.core.Osmosis run
Hi,
I have another question regarding osmconvert / osmosis PBF reading.
osmosis is not able to read pbf files that have no author information
(removed with osmconvert africa.osm.pbf --drop-author
-o=africa_noauthor.osm.pbf)
When reading the africa_noauthor.osm.pbf file with osmosis an
IndexOutOfBoundsException is thrown. Is the author information mandatory
for osmosis? Is it possible to change that?
Thanks
WanMil
Call:
osmosis --read-pbf file=africa_noauthor.osm.pbf --write-pbf
file=africa_osmosis.osm.pbf
Exception:
Information: Launching pipeline execution.
Jul 04, 2012 7:36:31 PM org.openstreetmap.osmosis.core.Osmosis run
Information: Pipeline executing, waiting for completion.
Jul 04, 2012 7:36:33 PM
org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager
waitForCompletion
Schwerwiegend: Thread for task 1-read-pbf failed
java.lang.IndexOutOfBoundsException: Index: 0
at java.util.Collections$EmptyList.get(Unknown Source)
at crosby.binary.Osmformat$DenseInfo.getUid(Osmformat.java:3026)
at
crosby.binary.osmosis.OsmosisBinaryParser.parseDense(OsmosisBinaryParser.java:120)
at crosby.binary.BinaryParser.parse(BinaryParser.java:124)
at crosby.binary.BinaryParser.handleBlock(BinaryParser.java:68)
at crosby.binary.file.FileBlock.process(FileBlock.java:135)
at
crosby.binary.file.BlockInputStream.process(BlockInputStream.java:34)
at crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:37)
at java.lang.Thread.run(Unknown Source)
Jul 04, 2012 7:36:33 PM org.openstreetmap.osmosis.core.Osmosis main
Schwerwiegend: Execution aborted.
org.openstreetmap.osmosis.core.OsmosisRuntimeException: One or more
tasks failed.
at
org.openstreetmap.osmosis.core.pipeline.common.Pipeline.waitForCompletion(Pipeline.java:146)
at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:92)
at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
at org.codehaus.classworlds.Launcher.main(Launcher.java:47)
More information about the osmosis-dev
mailing list