[OSM-dev] New tool to generate incremental planet.osm updates (planetdiff/planetpatch)

Jon Burgess jburgess777 at googlemail.com
Fri Apr 6 12:34:17 BST 2007


Hi all,
	I've developed a diff/patch tool for handling planet.osm dump files.
This allows an incremental diff to be generated between 2 planet.osm
dumps. This diff file can then be applied on top of the old planet.osm
to generate the new one. 

If we published these diff files on planet.openstreetmap.org then it
could make the downloads to obtain a new planet.osm dump much smaller. I
think the typical weekly diff file is in the order of 5MB to 10MB when
bz2 compressed.


The usage summary is:

Patch creation:
$ planetdiff planet-070307.osm.bz2 planet-070321.osm.bz2 > delta.xml

Applying a patch:
$ planetpatch planet-070307.osm.bz2 delta.xml > planet-070321a.osm



The tool is in SVN under utils/planetdiff/...

See the SVN readme.txt for further details or
http://trac.openstreetmap.org/browser/utils/planetdiff/readme.txt


	Jon







More information about the dev mailing list