Re: [OSM-talk] osmosis question
On Mon, May 24, 2010 at 4:45 PM, Gary68 wrote: > > command: > ~/osmosis/osmosis-0.30/bin/osmosis --read-xml-0.6 > file="osmdata/hessen.osm" --way-key-value > keyValueList="highway.motorway" --write-xml-0.6 file="bab.osm" > > error: > May 24, 2010 8:43:02 AM com.bretth.osmosis.core.Osmosis main > SEVERE: Execution aborted. > com.bretth.osmosis.core.OsmosisRuntimeException: Task 2-way-key-value > does not support data provided by default pipe stored at level 1 in the > default pipe stack. > Hi Gary, The error is indicating that the way key value task can't accept the input provided by the previous task. That could be because you're trying to feed a 0.6 task into a 0.5 task. However as Frederik has pointed out, I'd recommend upgrading to the latest Osmosis. 0.30 was created during the transition from 0.5 to 0.6 and there may have been some incorrectly mapped tasks at that time. Brett ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] osmosis question
ok, i'll give it a try. still the error message is strange... On Mon, 2010-05-24 at 09:39 +0200, Frederik Ramm wrote: > Hi, > > Gary68 wrote: > > WHAT's wrong? > > Someone using 0.30 when 0.35 is current, that's wrong ;-) > > Bye > Frederik > ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] osmosis question
Hi, Gary68 wrote: > WHAT's wrong? Someone using 0.30 when 0.35 is current, that's wrong ;-) Bye Frederik -- Frederik Ramm ## eMail frede...@remote.org ## N49°00'09" E008°23'33" ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
[OSM-talk] osmosis question
command: ~/osmosis/osmosis-0.30/bin/osmosis --read-xml-0.6 file="osmdata/hessen.osm" --way-key-value keyValueList="highway.motorway" --write-xml-0.6 file="bab.osm" error: May 24, 2010 8:43:02 AM com.bretth.osmosis.core.Osmosis main SEVERE: Execution aborted. com.bretth.osmosis.core.OsmosisRuntimeException: Task 2-way-key-value does not support data provided by default pipe stored at level 1 in the default pipe stack. at com.bretth.osmosis.core.pipeline.common.PipeTasks.retrieveTask(PipeTasks.java:154) at com.bretth.osmosis.core.pipeline.common.TaskManager.getInputTask(TaskManager.java:164) at com.bretth.osmosis.core.pipeline.v0_5.SinkSourceManager.connect(SinkSourceManager.java:51) at com.bretth.osmosis.core.pipeline.common.Pipeline.connectTasks(Pipeline.java:74) at com.bretth.osmosis.core.pipeline.common.Pipeline.prepare(Pipeline.java:116) at com.bretth.osmosis.core.Osmosis.run(Osmosis.java:79) at com.bretth.osmosis.core.Osmosis.main(Osmosis.java:30) WHAT's wrong? any idea appreciated! gary68 ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
[OSM-talk] osmosis question
is it possible to use osmosis filtering changesets to fit my AOI before applying it to my database? I'm thinking of something like: osmosis --read-xml-change file=changesets-090624.osm --apply-change --write-xml-change file=mychangeset.osm Or in general: what's the best way to keep my OSM database, which holds only my area of interest, up to date without having to process the whole planetfile. Marco ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk
Re: [OSM-talk] Osmosis question
On Jan 5, 2008 12:08 PM, Stefan Baebler <[EMAIL PROTECTED]> wrote: > You need to use --tee option to split the input into several pipes. > See the first example on > http://wiki.openstreetmap.org/index.php/Osmosis/Examples > > good luck, > Stefan > > > Jeremy Adams wrote: > > The syntax is wrong on the command below. I meant something like this: > > > > osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding- > > polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml > > file="usa.osm" --bounding-polygon file="new_york2pts.txt" Inpipe.0="mypipe" > > -- > > write-xml file="newyork.osm" > > > > -Jeremy > > > > Original Message --- > > It is possible to read in the planet file and process multiple bounding > > polygons into multiple files with osmosis? > > > > As an example, say I wanted to extract data from the latest planet for the > > entire united states as well as several states. Do I have to run osmosis > > for each file I want to create, or can it do one run through the planet > > while dumping the appropriate data into each file? > > > > Something like this maybe? > > > > osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" > > --bounding-polygon file="united_states2pts.txt" Inpipe.0="mypipe" > > --write-xml file="usa.osm" --bounding-polygon file="new_york2pts.txt" > > file="newyork.osm" Inpipe.0="mypipe" > > > > and so on for each area I want exported. Use caution if you are trying to use the completeWays option. It's not a good mix with the "tee" command right now because it makes temporary files which store the entire dataset. It will do this once for each "tee", so it could quickly chew up your disk space. Brett is working on some changes which will make this type of operation more practical and only require one data set copy. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] Osmosis question
You need to use --tee option to split the input into several pipes. See the first example on http://wiki.openstreetmap.org/index.php/Osmosis/Examples good luck, Stefan Jeremy Adams wrote: > The syntax is wrong on the command below. I meant something like this: > > osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding- > polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml > file="usa.osm" --bounding-polygon file="new_york2pts.txt" Inpipe.0="mypipe" -- > write-xml file="newyork.osm" > > -Jeremy > > Original Message --- > It is possible to read in the planet file and process multiple bounding > polygons into multiple files with osmosis? > > As an example, say I wanted to extract data from the latest planet for the > entire united states as well as several states. Do I have to run osmosis for > each file I want to create, or can it do one run through the planet while > dumping the appropriate data into each file? > > Something like this maybe? > > osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" > --bounding-polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml > file="usa.osm" --bounding-polygon file="new_york2pts.txt" file="newyork.osm" > Inpipe.0="mypipe" > > and so on for each area I want exported. > > > ___ > talk mailing list > talk@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk > > > ___ > talk mailing list > talk@openstreetmap.org > http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk > > ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] Osmosis question
Nevermind - I RTFM and answered my own question. Sorry for the messages. :) -Jeremy Original Message --- The syntax is wrong on the command below. I meant something like this: osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding- polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml file="usa.osm" --bounding-polygon file="new_york2pts.txt" Inpipe.0="mypipe" -- write-xml file="newyork.osm" -Jeremy Original Message --- It is possible to read in the planet file and process multiple bounding polygons into multiple files with osmosis? As an example, say I wanted to extract data from the latest planet for the entire united states as well as several states. Do I have to run osmosis for each file I want to create, or can it do one run through the planet while dumping the appropriate data into each file? Something like this maybe? osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding-polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml file="usa.osm" --bounding-polygon file="new_york2pts.txt" file="newyork.osm" Inpipe.0="mypipe" and so on for each area I want exported. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
Re: [OSM-talk] Osmosis question
The syntax is wrong on the command below. I meant something like this: osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding- polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml file="usa.osm" --bounding-polygon file="new_york2pts.txt" Inpipe.0="mypipe" -- write-xml file="newyork.osm" -Jeremy Original Message --- It is possible to read in the planet file and process multiple bounding polygons into multiple files with osmosis? As an example, say I wanted to extract data from the latest planet for the entire united states as well as several states. Do I have to run osmosis for each file I want to create, or can it do one run through the planet while dumping the appropriate data into each file? Something like this maybe? osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding-polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml file="usa.osm" --bounding-polygon file="new_york2pts.txt" file="newyork.osm" Inpipe.0="mypipe" and so on for each area I want exported. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk
[OSM-talk] Osmosis question
It is possible to read in the planet file and process multiple bounding polygons into multiple files with osmosis? As an example, say I wanted to extract data from the latest planet for the entire united states as well as several states. Do I have to run osmosis for each file I want to create, or can it do one run through the planet while dumping the appropriate data into each file? Something like this maybe? osmosis --read-xml file="planet-latest.osm" Outpipe.0="mypipe" --bounding-polygon file="united_states2pts.txt" Inpipe.0="mypipe" --write-xml file="usa.osm" --bounding-polygon file="new_york2pts.txt" file="newyork.osm" Inpipe.0="mypipe" and so on for each area I want exported. ___ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk