[OSM-dev] Osmosis - Cutting out a bounding box from a diff file (.osc)

Stéphane Henriod s at henriod.info
Wed Sep 5 07:56:47 BST 2012


Dear all

I now have a running process where I dowload the hourly diffs and those are
applied to the PostGIS database with osm2pgsql.

My problem is that, despite the *osm2pgsql -b* option, it seems that my
bounding box is ignored and the full diff file is added to my database, As
a consequence, the database is growing very quickly and includes lots of
data outside of my area of interest.

My question is thus: is it possible to cut out the bounding box from the
diff file before calling osm2pgsql? If I understand correctly, the
bounding-box task (
http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage#--bounding-box_.28--bb.29)
only works on planet files, not diff files. Correct?

Is there a way to get the following process working:

   1. Get the last hourly diff file
   2. Extract from the diff file all the objects within my bounding box
   3. Apply this to the PostGIS database with osm2pgsql

Thanks in advance and best wishes

Stéphane
--
"Le mot progrès n'aura aucun sens tant qu'il y aura des enfants malheureux"
-- Albert Einstein

"A journey does not need reasons. Before long, it proves to be reason
enough in itself. One thinks that one is going to make a journey, yet soon
it is the journey that makes or unmakes you." -- Nicolas Bouvier

Photos de voyages, photos de montagne: http://www.henriod.info
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20120905/54cc0e35/attachment.html>


More information about the dev mailing list