Hey, is it possible to create a change file in geographical boundaries with osmupdate. I already tried: osmupdate germany-latest.osm.pbf 2014-11-23T21:22:02Z change_file.osc.gz -B=germany.poly But the Change File always contains the entire globe. regards lakul asked 25 Nov '14, 11:40 lakul83 |
Yes it is possible, but it is a bit more complicated. First you update your extract with osmupdate:
Then you calculate the differences with osmconvert:
This gies you the desired osm change file. After that you probably want to rename It has a slight problem though: you might get incomplete extracts when ways or relations move inside your boundary. This is why I do a slightly more complicated variant for the swiss extract on planet.osm.ch: use a larger bbox around swizerland:
update this bbox:
cut out switzerland from this larger region:
and create the diff between the old cut out and the new one:
answered 25 Nov '14, 13:01 datendelphin Hi, many thanks. This idea I had. The update of the file germany-latest.pbf but takes too long. I would like to update my tile server every 5 minutes. Greetings Lakul
(25 Nov '14, 14:01)
lakul83
This is ambitious. If your server is too slow, you will have to rely on other resources or tools. For example overpass offers augmented diffs: http://wiki.openstreetmap.org/wiki/Overpass_API/Augmented_Diffs But it only support BBOX for extracting a region. Or let someone with a fast server provide you with the regional diffs.
(25 Nov '14, 19:29)
datendelphin
|