[osmosis-dev] Running a crop task to multiple output
Laurent Gregoire
laurent.gregoire at gmail.com
Fri Jun 17 10:00:31 BST 2011
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
More information about the osmosis-dev
mailing list