-
After installing Nominatim version 4.4, everything starts and works well. However, there seems to be a problem with polygonal features crossing the 180th meridian. PBF_URL=https://download.geofabrik.de/russia/far-eastern-fed-district-latest.osm.pbf then after installation the request http://127.0.0.1:7070/lookup?osm_ids=R151231&limit=1&format=json&polygon_geojson=1 returns an empty array, for comparison https://nominatim.openstreetmap.org/lookup?osm_ids=R151231&limit=1&format=json&polygon_geojson =1 returns expected. If you look at the import tables: SELECT * FROM place WHERE osm_id = 151231 AND osm_type = 'R' -- no results Is there a problem with osm2pgsql or what? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think the PDF file you downloaded contains anything beyond the 180 longitude. See the red border on https://download.geofabrik.de/russia/far-eastern-fed-district.html You can try to create your own extract from the planet. For example using https://extract.bbbike.org/ or https://docs.osmcode.org/osmium/v1.14.0/osmium-extract.html Dealing with the meridian is notorious tricky with all tools. There's no good standards. You might need to create two extracts and combine them. |
Beta Was this translation helpful? Give feedback.
-
Just checked, everything seems to be working correctly now. Thank you very much! |
Beta Was this translation helpful? Give feedback.
I have changed the extract boundaries on the Geofabrik download server to include things on the 180/-180 longitude. Files from 01 April 2024 or later should now contain these ways.