[OSM-dev] osmosis diff

Stephan Knauss osm at stephans-server.de
Fri Sep 9 23:22:43 BST 2011


Hi,

On 08.09.2011 00:21, BG wrote:
> I use osmosis because of the diff imports.
> I do not have the complete planet in my database. only 3 countries.
> While making a diff import, does osmosis only update my countries or
> does it change every data of the planet?

in a later post you mentioned using mapnik. I suppose you are importing 
into a pgsql database with a mapnik schema.
So you are applying diffs with osm2pgsql.

For that tool it can work with bounding boxes but as ways and relation 
diffs have no geometry they will all go into the database. You have to 
get rid of these regularly.

I'm doing this with a cronjob calling a cleanup query.
http://wiki.openstreetmap.org/wiki/User:Stephankn/knowledgebase#Cleanup_of_ways_outside_the_bounding_box


If you really asking about osmosis: Sorry I have never used it to update 
a database, only updating full planet files.

Stephan



More information about the dev mailing list