[osmosis-dev] Running a crop task to multiple output
Kirill Bestoujev
bestoujev at gmail.com
Fri Jun 17 10:31:39 BST 2011
The --tee task is what you need.
K.
On 17.06.2011 13:00, Laurent Gregoire wrote:
> Hi all,
>
> Is it possible to crop an input osm file to multiple regions, and
> output each region to a different file, all in one pass? My input file
> is rather large and processing the whole takes a long time. I did not
> found an answer anywhere yet, but scanning the source code shows the
> "EntityTee" class that may hint to a possible solution... But I was
> lost through the call hierarchy to it :)
>
> I currently use this:
> bzcat data.osm.bz2 | osmosis --rx - --bb left=0.000 bottom=47.000
> right=1.000 top=48.000 --wx out1.osm
> bzcat data.osm.bz2 | osmosis --rx - --bb left=1.000 bottom=47.000
> right=2.000 top=48.000 --wx out2.osm
> ...
>
> I'd like to have something like this:
> bzcat data.osm.bz2 | osmosis --rx - --bb left=0.000 bottom=47.000
> right=1.000 top=48.000 --wx out1.osm --bb left=1.000 bottom=47.000
> right=2.000 top=48.000 --wx out2.osm ...
>
> And if not possible, any hints on what would be the amount of work to
> implement it?
>
> Any comments welcomed!
>
> Thanks for any answers and for the work already done :)
>
> --Laurent
>
> _______________________________________________
> osmosis-dev mailing list
> osmosis-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/osmosis-dev
More information about the osmosis-dev
mailing list