NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am using nominatim. I am working on a metro extract from

During the nominatim setup process I add the {extract}.osm file. There is a osm_id= which I cannot find in the place and placex database using sql queries. How do I debug why this never got added to the database?

Even has problem with this relation. When you search for the exact name of the relation on the site "North West Delhi District", it goes to some other artifact.

When I hit nominatim with "osmid=1942609&osmtype=R", it fails. A very similar relation and right next to it in the file "1942605" succeeds...

Fails :

Succeeds :

asked 01 Aug '15, 03:21

arahut_kyenetic's gravatar image

accept rate: 0%

edited 01 Aug '15, 03:24

Likely the relation itself is simply broken. See:

I would suggest editing it in JOSM and running the validator on it.

PS: as you can see there is a gap here :

permanent link

answered 03 Aug '15, 07:38

SimonPoole's gravatar image

SimonPoole ♦
accept rate: 18%

edited 04 Aug '15, 08:13

Simon, Thanks! for the answer. That makes sense. As a follow up is there a way to run the import in a less strict fashion?

(04 Aug '15, 00:02) arahut_kyenetic

@arahut_kyenetic IMHO you have two options:

  • fix the relation, wait till it it the planet / or in the extract you are importing and re-import
  • fix the relation and comsume diffs up to at least the point in time the relation is OK again.

THe problem with "less strict" is that osm2pgsql would still have to build a valid geometry from what exsits (aka close the polygon) which is naturally technically possible but I don't believe anybody has implemented that.

(04 Aug '15, 08:12) SimonPoole ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 01 Aug '15, 03:21

question was seen: 3,182 times

last updated: 04 Aug '15, 08:18

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum