Replies: 4 comments 2 replies
-
|
Nominatim merges administrative relations and nodes that represent the same into one place (database row). So it's expected that the database contains a relation for Maine (https://www.openstreetmap.org/relation/63512) and data from the node (https://www.openstreetmap.org/node/316961875) are copied into the relation. Nominatim uses the That would fail if the relation is not imported (or broken) in the database. Did you import only the United States? If you list the affected US states, are they all at the border of the country? In the past we've seen that countries are cut/extracted from the whole planet data and the borders of the cut are outdated. For example on http://download.geofabrik.de/north-america/us.html you see the orange borders on the map top-right of the page. If that misses only 1km then the relation hasn't got all members (ways) and is incomplete. First check if the affected US states are at borders. If for example Kansas is also affected then the above theory doesn't work. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your response @mtmail . I imported the full planet data. No, Kansas was not affected. For the USA all other states are imported with admin_level =4 and class='boundary' and type='administrative'. But American Samoa, Maine, MD got the class as 'place' and type as 'state' and admin level value as 15. Here is the import file that I used. |
Beta Was this translation helpful? Give feedback.
-
|
Thank You @mtmail for your help on this. It is the same case with Maryland also and also for 10 more states in other countries.
Once again thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your response again @mtmail . I don't have a replication setup and the data is around 15 days old. I will do the full reload. Also Thanks for giving me the link to the comment. I am using parent_id in my code to build the hierarchy :) As mentioned in the comment I use place_addressline. I compared the old data with the latest I have and here are the missing OSM_ID records. We have 11 missing records for admin_level 4. These are the ones that impacted most child records. https://docs.google.com/spreadsheets/d/1ZGRtQyiCRCEeexFHk2OmVCHTFTNOBfB41wJ0SU1lrOQ/edit?usp=sharing The data is ordered by admin_level. Just a quick note below are the ones for admin_level 4. Remaining all are in the above link excel sheet <style type="text/css"></style>
|
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
I installed Nominatim two days ago and found that a few records got different OSM ids compared to the ones in the Nominatim search. Because of that, the parent id links are broken in the installation.
For example, for OSM_ID id in Nominatim 63512 ( Maine ) I got OSM_ID 316961875 in my installation. Because of this, all the child nodes got impacted, they got parent_id as zero. Like this, there are 11 states got impacted and many children.
I am confused about what went wrong and not sure if it is a bug or something else I am missing.
This count shows the ones whose admin-level nodes got different OSM_IDS. All the children depending on these nodes are impacted due to this.
Thanks for your advice.
Regards
Beta Was this translation helpful? Give feedback.
All reactions