[OSM-dev] Planet.osm diffs autogenerated

Keith Sharp kms at passback.co.uk
Fri Aug 10 10:12:55 BST 2007


On Fri, 2007-08-10 at 09:44 +0200, spaetz wrote:
> On Fri, Aug 10, 2007 at 12:06:19AM +0100, Jon Burgess wrote:
> > Thanks for adding the diffs spaetz.
> Thanks for creating planetdiff. I love the fact that it operates directly on the bz2 files and that it seems very gentle in its memory consumption. I can run it on the dev machine without interrupting everything else.
> 
> > For reference, multiple planetdiff tools can be persuaded to pipeline
> > together. This allows you to load latest planet.osm into osm2pgsql using
> > an old dump + multiple diffs as follows:
> > 
> > $ planetpatch planet-070718.osm.bz2 planet-070718-070725.diff.xml.bz2 | \
> >   planetpatch /dev/stdin planet-070725-070801.diff.xml.bz2 | \
> >   planetpatch /dev/stdin planet-070801-070808.diff.xml.bz2 | \
> >   osm2pgsql -
> 
> Cool and good to know. How difficult would it be to incorporate this into one planetpatch call, ie
> planetpatch planet-070718.osm.bz2 planet-070718-070725.diff.xml.bz2  planet-070725-070801.diff.xml.bz2 planet-070801-070808.diff.xml.bz2 | osm2pgsql -

Being able to do this would be very cool, much easier to script daily
(or weekly) updates if you can do something like:

TODAY=`date ...`
YESTERDAY=`date ...`

cd /my/planet/download/directory/

wget http://planet.openstreetmap.org/planet-${YESTERDAY}-${TODAY}.osm.bz2

planetpatch ./* | osm2pgsql -

Keith.





More information about the dev mailing list