[Tile-serving] [openstreetmap/osm2pgsql] Add a script for simple updating of a database (#1411)
Sarah Hoffmann
notifications at github.com
Sun Feb 7 09:13:53 UTC 2021
@stephankn You do have slightly specific requirements. I would suggest that you simply use [pyosmium-get-update](https://docs.osmcode.org/pyosmium/latest/updating_osm_data.html). With that you can set up a sequence id manually if you want (although, I'm not quite sure why you would. There are not third party services involved except the OSM API where it looks for the date of the newest object in the database. After that it just does a binary search on the replication service to find the right state file for the date.) And you can preprocess the downloaded diff before applying to osm2pgsql.
> If I use a Geofabrik extract as a base for my own extract then it does still insist to load updates from there.
Then you have copied the replication information while doing your extract. The --osm-file options only exists for files that carry replication information in the header. No other information is used. It is meant for people who quickly want to set up update from Geofabrik or openstreetmap.fr extracts without having to bother about finding the URL of the replication service.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1411#issuecomment-774640009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20210207/7a4f7e89/attachment.htm>
More information about the Tile-serving
mailing list