NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Why not work?

osmium-tool-1.14.0

osmosis.bat --rx a.osm.pbf --rx b.osm.pbf --merge --wx merged.osm.pbf lut 20, 2023 6:38:19 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Osmosis Version 0.48.3 lut 20, 2023 6:38:19 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Preparing pipeline. lut 20, 2023 6:38:19 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Launching pipeline execution. lut 20, 2023 6:38:19 PM org.openstreetmap.osmosis.core.Osmosis run INFO: Pipeline executing, waiting for completion. lut 20, 2023 6:38:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: Thread for task 1-rx failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to unzip gz file a.osm.pbf. at org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader.unzipParse(BaseXMLReader.java:109) at org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader.handleXML(BaseXMLReader.java:84) at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:52) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.util.zip.ZipException: Not in GZIP format at java.base/java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:166) at java.base/java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:80) at java.base/java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:92) at org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader.unzipParse(BaseXMLReader.java:101) ... 3 more

lut 20, 2023 6:38:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: Thread for task 2-rx failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to unzip gz file b.osm.pbf. at org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader.unzipParse(BaseXMLReader.java:109) at org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader.handleXML(BaseXMLReader.java:84) at org.openstreetmap.osmosis.xml.v0_6.XmlReader.run(XmlReader.java:52) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: java.util.zip.ZipException: Not in GZIP format at java.base/java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:166) at java.base/java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:80) at java.base/java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:92) at org.openstreetmap.osmosis.xml.v0_6.impl.BaseXMLReader.unzipParse(BaseXMLReader.java:101) ... 3 more

lut 20, 2023 6:38:20 PM org.openstreetmap.osmosis.core.pipeline.common.ActiveTaskManager waitForCompletion SEVERE: Thread for task 3-merge failed org.openstreetmap.osmosis.core.OsmosisRuntimeException: An input error has occurred, aborting. at org.openstreetmap.osmosis.core.store.DataPostbox.checkForInputErrors(DataPostbox.java:174) at org.openstreetmap.osmosis.core.store.DataPostbox.consumeCentralQueue(DataPostbox.java:244) at org.openstreetmap.osmosis.core.store.DataPostbox.hasNext(DataPostbox.java:441) at org.openstreetmap.osmosis.set.v0_6.EntityMerger.nextOrNull(EntityMerger.java:290) at org.openstreetmap.osmosis.set.v0_6.EntityMerger.run(EntityMerger.java:126) at java.base/java.lang.Thread.run(Thread.java:834)

lut 20, 2023 6:38:20 PM org.openstreetmap.osmosis.core.Osmosis main SEVERE: 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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47)

asked 20 Feb '23, 19:37

Zeofil's gravatar image

Zeofil
11112
accept rate: 0%

From the logs, it looks like the files you are trying to read are not in gzip format. Probably they got corrupted. Or maybe try specifying the compressionMethod option as explained in the wiki https://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.48#--read-xml_(--rx)

(21 Feb '23, 10:56) gabenarni

osmosis --rb file="name.osm.pbf" -rb file= .. --merge --merge --wb file="output.osm.pbf" - its work :) thanks

permanent link

answered 21 Feb '23, 12:15

Zeofil's gravatar image

Zeofil
11112
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×38

question asked: 20 Feb '23, 19:37

question was seen: 758 times

last updated: 21 Feb '23, 12:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum