Skip to content

Deleting disputed territories in a nominatim instance #2389

Answered by lonvia
kenseii asked this question in Q&A
Discussion options

You must be logged in to vote

There is an undocumented maintenance SQL function place_force_delete() which you can use to remove a relation properly. Find the place_id of the relation in question, for example, by using the /details endpoint. Run SELECT place_force_delete(<place_id>) in psql and then reindex your database with nominatim index to make sure all places that are affected (because they have the unwanted place in their address) are updated as well.

The big disadvantage of this approach is that it undoes the previous indexing and that is expensive and doesn't always work perfectly. Also, if you run updates, then the relation might just return the moment somebody edits it.

The better approach would be to filte…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@lonvia
Comment options

@kenseii
Comment options

@lonvia
Comment options

@kenseii
Comment options

@kenseii
Comment options

Answer selected by kenseii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants