Re: [OSM-talk] Osmosis question

2008-01-05 Thread Jeremy Adams
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


Re: [OSM-talk] Osmosis question

2008-01-05 Thread Stefan Baebler
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

2008-01-05 Thread Jeremy Adams
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

2008-01-05 Thread Karl Newman
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

2010-05-24 Thread Frederik Ramm
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


Re: [OSM-talk] osmosis question

2010-05-24 Thread Gary68
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

2010-05-24 Thread Brett Henderson
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