osm-search / Nominatim

Open Source search based on OpenStreetMap data
https://nominatim.org
GNU General Public License v3.0
2.99k stars 701 forks source link

Update osm2pgsql to latest 1.11.0 and add support for new middle format #3344

Closed lonvia closed 4 months ago

lonvia commented 4 months ago

osm2pgsql received a new table layout for the middle tables in 1.10, which became the default in 1.11. Nominatim needs the middle table to look up node-way relations and members of waterways and interpolations.

This PR adds support for the new middle format. Nominatim will detect which version of the middle is used and adapt its functions accordingly, so you can still use older versions of osm2pgsql.

Fixes #3336.