[Tile-serving] [openstreetmap/osm2pgsql] osm2pgsql-replication.py updating a extracted (by polygon clip) dataset? (Discussion #1612)

Sarah Hoffmann notifications at github.com
Mon Jan 17 15:36:35 UTC 2022


osm2pgsql-replication.py can only be used with a predefined replication source.

Updating a custom extract is a lot more involved. It roughly works along those lines:

A. Initial import:
    1. Download europe
    2. Create extract with `osmium extract`
    3. Import extract with `osm2pgsql --slim`
    4. Keep original europe and extract around.

B. Update:
    1. Update europe file using [pyosium-up-to-date](https://docs.osmcode.org/pyosmium/latest/updating_osm_data.html#updating-a-planet-or-extract).
    2. Create a new extract with `osmium extract`
    3. Create a diff file between old extract and new extract using `osmium derive-changes`
    4. Apply diff with `osm2pgsql -a --slim`
    5. Keep updated europe file and new extract around.

Repeat B for each update cycle.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/discussions/1612#discussioncomment-1984336
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/osm2pgsql/repo-discussions/1612/comments/1984336 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20220117/98295787/attachment.htm>


More information about the Tile-serving mailing list