[OSM-talk] Osmosis error with multiple bouding boxes

Lambertus osm at na1400.info
Thu Oct 25 17:05:00 BST 2007


I've tested 0.21 now with the 'tee' command where 4 outPipes are created and 
4 bounding boxes that use these outPipes and this is the result:

 ~/jre/bin/java -jar utils/osmosis/osmosis.jar
--read-xml file="planet-latest.osm" outPipe.0="planet"
--tee inPipe.0="planet" outPipe.0="t1" outPipe.1="t2" outPipe.2="t3" 
outPipe.3="t4"
--bounding-box inPipe.0="t1" left=3.25 bottom=50.75 top=51 right=3.5 
outPipe.0="b1"
    --write-xml inPipe="b1" file="planet/63240001.osm"
--bounding-box inPipe.0="t2" left=3.25 bottom=51 top=51.25 right=3.5 
outPipe.0="b2"
    --write-xml inPipe="b2" file="planet/63240002.osm"
--bounding-box inPipe.0="t3" left=3.25 bottom=51.25 top=51.5 right=3.5 
outPipe.0="b3"
    --write-xml inPipe="b3" file="planet/63240003.osm"
--bounding-box inPipe.0="t4" left=3.25 bottom=51.5 top=51.75 right=3.5 
outPipe.0="b4"
    --write-xml inPipe="b4" file="planet/63240004.osm"

Gives an error on 't3':

Oct 25, 2007 5:56:13 PM com.bretth.osmosis.core.Osmosis main
INFO: Osmosis Version 0.21
Oct 25, 2007 5:56:13 PM com.bretth.osmosis.core.Osmosis main
INFO: Preparing pipeline.
Oct 25, 2007 5:56:13 PM com.bretth.osmosis.core.Osmosis main
SEVERE: Main thread aborted.
com.bretth.osmosis.core.OsmosisRuntimeException: No pipe named t3 is 
available as input for task 7-bounding-box.
        at 
com.bretth.osmosis.core.pipeline.common.PipeTasks.retrieveTask(PipeTasks.java:100)
        at 
com.bretth.osmosis.core.pipeline.common.TaskManager.getInputTask(TaskManager.java:161)
        at 
com.bretth.osmosis.core.pipeline.v0_5.SinkSourceManager.connect(SinkSourceManager.java:50)
        at 
com.bretth.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:73)
        at 
com.bretth.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:111)
        at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:48)

So apparently t1 and t2 are functional, but t3 isn't. Scaling down the test 
to only two outPipes results in succes. Probably a software coded limit on 
outPipes or somesuch?


----- Original Message ----- 
From: "Brett Henderson" <brett at bretth.com>
To: "OSM Talk" <talk at openstreetmap.org>
Sent: Thursday, October 25, 2007 14:50
Subject: Re: [OSM-talk] Osmosis error with multiple bouding boxes


osmosis version 0.21 is now available with -tee and -tee-change tasks.
Usage is documented on the wiki.
http://wiki.openstreetmap.org/index.php/Osmosis







More information about the talk mailing list