nominatim import -> No marked ways (Skipping stage 2) & FATAL: No data imported by osm2pgsql. #3965
Unanswered
wyf2215087636
asked this question in
Q&A
Replies: 2 comments 1 reply
|
0 replies
|
This is not a valid polygon, it intersects in the middle. Note that this is very hard to "see" when just rendering the data because of the odd shape with 400km of length and 400m of width. The correct order of the nodes in the way would be: |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Title: OSM file fails to import in Nominatim with “No marked ways” and “No data imported by osm2pgsql” errors
Description:
When importing the following OSM XML file into Nominatim, the process fails with two main errors:
No marked ways (Skipping stage 2)
FATAL: No data imported by osm2pgsql
The file renders correctly in various GIS tools and OSM renderers, but Nominatim refuses to import it.
After testing, I found that if I remove the two nodes with IDs 109478 and 112351, the import succeeds.
This suggests that there may be an issue or conflict related to these specific nodes.
Minimal failing OSM data:
Steps to reproduce:
Save the above XML as a .osm file.
Run Nominatim import (e.g., nominatim import --file <file.osm>).
Observe the import failure with the errors mentioned.
Expected behavior:
The file should import successfully, given that it is valid OSM and renders correctly elsewhere.
Actual behavior:
Import fails with “No marked ways” and “No data imported by osm2pgsql”.
Workaround:
Removing nodes 109478 and 112351 allows the import to proceed without errors.
Possible causes considered:
Coordinate range or geometry validity issues?
Conflict with existing data in the database?
A bug in osm2pgsql or Nominatim’s preprocessing when certain nodes are present?
Any insight into why these two nodes cause the import to fail would be greatly appreciated. Thank you!
All reactions