[OSM-dev] keeping up to date an extract of planet.osm
Frederik Ramm
frederik at remote.org
Tue May 18 09:58:49 BST 2010
Hi,
Stefano Salvador wrote:
> I would like to set up a copy of OSM DB only for a small region and
> then keeping it up to date with the replicates, is this possible ?
You will need to apply the full diffs and afterwards cut off anything
you're not interested in.
If you intend to do it for a rather small area then it is really quite
easy and performs well with Osmosis. Assuming you have a current extract
of your area in "current.osm" and you have the Osmosis replication set
up properly (--rrii), then you simply run
osmosis --rri --simc --rx current.osm --ac --bb <boundingbox here>
clipIncompleteEntities=yes --wx new.osm && mv new.osm current.osm
as often as you like. The <boundingbox here> has to be replaced by a set
of "left=x right=x top=x bottom=x" where you specify the section you are
interested in.
Bye
Frederik
More information about the dev
mailing list