[OSM-dev] Hwo to get a diff (and apply it?)

Frederik Ramm frederik at remote.org
Fri Jun 20 20:58:52 BST 2008


Hi,

> my goal is to have a tileserver that renders tile on demand and is as up 
> to date as possible. I just want to serve a small area (about 0,5° x 0.5°).
> I read about diffs, but I can't find any usefull information. Wiki just 
> tells me that there are diffs..
> 
> At the moment I download the whole area with the api and import it into 
> postgres with osm2pgsql (Once a day).
> Where can I get the diff and how do I apply this diff on the postgres 
> database?

Don't.

If you wanted to do what you say, you'd have to use Osmosis to apply the 
diff to your downloaded XML file, then cut out the affected area again 
because applying the diff (which is for the whole planet) will also 
create new objects everywhere on the planet. After that you'd have to 
re-import your patched XML to PostGIS. I think you'd be better off just 
downloading the whole area once or twice a day if it is so small.

Bye
Frederik




More information about the dev mailing list