Hi Dmitry,

If both inputs for the merge are coming from the same thread (e.g. using the tee task followed by the merge task), Osmosis may experience deadlock and the operation will never finish. For an example of how to resolve the problm, see:

http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage_0.42#--tag-filter_.28--tf.29

-Andrew


On 09/09/2012 12:54 PM, Dmitry Panin wrote:
Hi,

I am extracting boundaries (for converting map with mkgmap) using this
command:

osmosis  --read-pbf file=input/example.osm.pbf outPipe.0=1 \
     --tee 2 inPipe.0=1 outPipe.0=2 outPipe.1=3 \
     --buffer inPipe.0=3 outPipe.0=4 \
     --buffer inPipe.0=2 outPipe.0=5 \
     --tag-filter accept-relations boundary=administrative,
postal_code inPipe.0=4 outPipe.0=6 \
     --used-way inPipe.0=6 outPipe.0=7 \
     --tag-filter reject-relations inPipe.0=5 outPipe.0=8 \
     --tag-filter accept-ways boundary=administrative,postal_code
inPipe.0=8 outPipe.0=9 \
     --used-node inPipe.0=9 outPipe.0=10 \
     --used-node inPipe.0=7 outPipe.0=11 \
     --merge inPipe.0=10 inPipe.1=11 outPipe.0=12 \
     --write-pbf file=boundary/local-boundaries.osm.pbf
omitmetadata=true compress=deflate inPipe.0=12

Where example.osm.pbf is this file:
http://data.gis-lab.info/osm_dump/dump/latest/RU-MOW.osm.pbf

In version 0.40 everything works fine. Here is the log:

09.09.2012 14:40:19 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40
09.09.2012 14:40:20 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
09.09.2012 14:40:20 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
09.09.2012 14:40:20 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
09.09.2012 14:40:57 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
09.09.2012 14:40:57 org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 38201 milliseconds.

But when I do it using version 0.41 excution stops and waits for something:
09.09.2012 14:43:58 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.41
09.09.2012 14:43:58 org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
09.09.2012 14:43:58 org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
09.09.2012 14:43:58 org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.

And nothing happens even after 5 minutes of waiting.

Is this a bug or some backward compatibilty changed with version 0.41?


--
Best regards,
Dmitry Panin


_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev



_______________________________________________
osmosis-dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/osmosis-dev

Reply via email to