On Mon, Sep 8, 2008 at 7:50 PM, Hakan Tandogan <[EMAIL PROTECTED]>wrote:
> > On Sun, September 7, 2008 19:44, Nic Roets wrote: > > Hello Hakan, > > > > > > If you're interested in Europe, you can script a daily download from > > Frederik Ramm's geofabrik.de site. Importing into gosmore requires 256 > MB > > Can I apply a (worldwide) hourly diff to a planet extract from > geofabrik.de or would I have to extract the appropiate area from the diff > file first? There are two steps that have to be performed in a specific order: 1. Apply the worldwide diff to the planet extract. 2. Run the result file through a bounding box task to remove unwanted data outside the area of interest. > > > Are there scripts in SVN that already to this diff application? Osmosis will do this for you, something like this: osmosis --read-xml-change hourlydiff.osc.gz --read-xml planet-extract.osm.gz --merge --bounding-box left=x right=x top=x bottom=x --write-xml updated-planet-extract.osm.gz If you wish to automate this process you can use this script launched hourly from cron: http://www.bretth.com/myanmar/replicate_osm_file.sh It uses a special task called --read-change-interval which automates the downloading of relevant diff files from the server and merging into a single changeset. It requires a working directory which is created with the --read-change-interval-init task as documented here: http://wiki.openstreetmap.org/index.php/Osmosis/DetailedUsage#--read-change-interval-init_.28--rcii.29
_______________________________________________ Routing mailing list Routing@openstreetmap.org http://lists.openstreetmap.org/listinfo/routing