[Tile-serving] Recommended OSM update method?
Imre Samu
pella.samu at gmail.com
Fri Apr 15 21:24:10 UTC 2022
> "update in batches approximately monthly"
in theory: you can generate an osm change file from 2 osm monthly planet
files [ https://planet.openstreetmap.org/pbf/ ]
example:
first import : planet-220307.osm.pbf ( in the database )
next monthly batch: planet-220404.osm.pbf ( planned import. )
And using https://docs.osmcode.org/osmium/latest/osmium-derive-changes.html
you can create OSM change files from the two OSM monthly planet files.
osmium derive-changes planet-220307.osm.pbf planet-220404.osm.pbf -o
*planet-diff-220307-220404.osc.bz2*
in theory, the "planet-diff_220307_220404.osc.bz2" change file is smaller
than the sum of ( daily changes files )
disclaimer: in theory == not tested in real life.
regards,
Imre
Lynn W. Deffenbaugh (Mr) <ldeffenb at homeside.to> ezt írta (időpont: 2022.
ápr. 14., Cs, 21:06):
> Greetings fellow tile servers,
>
> I've just about finished (re)setting up my planet-wide tile server for
> the umpteenth time and was wondering what is the current recommendation
> for keeping the OSM database current. There are two different approaches
> that I've found documented, and I've used both of them in the past. But
> for this newest server, I'd like to follow the best practice recommended
> by the community.
>
> Using mod_tile's openstreetmap-tiles-update-expire from
>
> https://switch2osm.org/serving-tiles/updating-as-people-edit/
>
> or use osm2pgsql's osm2pgsql-replication from
>
> https://osm2pgsql.org/doc/manual.html#updating-an-existing-database
>
> For a bit of background, I don't need minutely updates, but update in
> batches approximately monthly using the daily planetary diffs. After
> updating, I re-render all existing tiles that have been affected by the
> updates (expired) and then snapshot the end resulting individual PNGs
> (extracted from the metatiles directly) to another storage platform.
>
> Any/all comments are welcome.
>
> Lynn (D)
>
>
>
> _______________________________________________
> Tile-serving mailing list
> Tile-serving at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/tile-serving
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220415/fefc280f/attachment.htm>
More information about the Tile-serving
mailing list