[OSM-dev] Merging Changes with Bounding Boxes
Andrew Ayre
andy at britishideas.com
Fri Jul 15 12:34:00 BST 2011
Hi, currently I extract a piece of map data and store it. Later on I
want to apply a set of changes to it. Here are my commands:
osmosis --read-pbf britishisles.osm.pbf --buffer bufferCapacity=12000
--bb bottom=51 top=52 left=-1 right=1 --write-pbf london.osm.pbf
osmosis --read-xml-change changes.osc --read-pbf london.osm.pbf
--apply-change --buffer bufferCapacity=12000 --bb top=52 bottom=51
left=-1 right=1 --write-pbf londonnew.osm.pbf
The merge command takes 40 seconds to run but I have to do this a lot,
so I am wondering if it is possible to clip the changes to a bounding
box before the merge? Would that improve performance? For example
changes.osc might cover the whole of the planet.
I tried adding a --bb command after --read-xml-change but Osmosis
complained the input format was the wrong type.
Or is it that applying the change and then the bounding box yields the
best performance performance?
thanks, Andy
--
Andy
PGP Key ID: 0xDC1B5864
More information about the dev
mailing list