[OSM-talk] Osmosis and Bounding Boxes
Frederik Ramm
frederik at remote.org
Mon Feb 18 23:07:05 GMT 2008
Hi,
> If your goal is to have the results of all three bounding boxes in one
> file, you could tee the output of each bounding box, write one to a file,
> then pass the other to a merge task, then write out that merged set. It
> would be a complex command line but it should be possible.
You could also do the follwing in one Osmosis run:
* read input file
* cut out a bounding box or polygon that has the combined area of all
the little ones
* "tee" this into n+1 streams
* write one of them to a file
* apply a further --bounding-box to the other "n" streams
* write the other streams to a file
If your little boxes make up one big box then this is quite easy; if
the little boxes make up some other shape or are disjunct even then it
still works but requires a --bp in the first cut-out task.
Of course you could also simply tee the whole file into n+1 streams
and then apply the big box to one of them and the little ones to the
others but if your input is much bigger than your boxes then you're
wasting a lot of CPU there.
Bye
Frederik
--
Frederik Ramm ## eMail frederik at remote.org ## N49°00.09' E008°23.33'
More information about the talk
mailing list