restrict linked places to place nodes

Avoids getting the wrong entry when the linked place has
double tagging.

Fixes #573.
This commit is contained in:
Sarah Hoffmann
2017-06-07 21:32:02 +02:00
parent f4e958a66d
commit 9785aff76c
2 changed files with 23 additions and 2 deletions

View File

@@ -108,3 +108,22 @@ Feature: Linking of places
Then results contain
| osm_type |
| W |
# github #573
Scenario: Boundaries should only be linked to places
Given the named places
| osm | class | type | extra+wikidata | admin | geometry |
| R1 | boundary | administrative | 34 | 8 | poly-area:0.1 |
And the named places
| osm | class | type | geometry |
| N3 | natural | island | 0.00001 0 |
| N3 | place | city | 0.00001 0 |
And the relations
| id | members |
| 1 | N3:label |
When importing
Then placex contains
| object | linked_place_id |
| N3:natural | - |
| N3:place | R1 |