[Tile-serving] [openstreetmap/osm2pgsql] Import two or more extracts. (Discussion #2031)

Jochen Topf notifications at github.com
Tue Aug 15 19:00:37 UTC 2023


The problem is not duplicate data but inconsistent data. Duplicate data is fine, osm2pgsql will detect that. The problem is when extract A has version X of a way and extract B has version Y. Then you get into all sorts of problems. If you have extracts from two neighboring countries with some overlap and the extracts were generated from the same planet, everything will be fine.

And this has nothing to do with incomplete data, that's a whole other issue and not solvable in general. There is just no defined way how you can cut OSM data without looking at the specifics of that data. We are not adding more command line options to supposedly fix something which is not fixable. If you have a problem with cut data, the only way to solve that is to make your extract so large that you are "pretty sure" that everything you need is in it and cut after importing into the database. And what "pretty sure" is depends on what data you actually need and what you are doing with it.

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

Message ID: <openstreetmap/osm2pgsql/repo-discussions/2031/comments/6733427 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230815/2c2de1cf/attachment.htm>


More information about the Tile-serving mailing list