drop interpolations when no parent can be found

A housenumber without the place it refers to is of only limited use.
This commit is contained in:
Sarah Hoffmann
2024-05-14 11:35:14 +02:00
parent 7f0d969d71
commit 01f0f453dd
4 changed files with 111 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ Feature: Updates of address interpolation objects
"""
n1 Taddr:housenumber=3
n2 Taddr:housenumber=17
w33 Thighway=residential,name=Tao Nn1,n2
"""
Then place contains
| object | type |
@@ -33,6 +34,7 @@ Feature: Updates of address interpolation objects
| object | type |
| N1:place | house |
| N2:place | house |
| W33:highway | residential |
Then location_property_osmline contains exactly
| object |
| 99:5 |
@@ -73,6 +75,7 @@ Feature: Updates of address interpolation objects
"""
n1 Taddr:housenumber=3
n2 Taddr:housenumber=17
w33 Thighway=residential Nn1,n2
w99 Thighway=residential Nn1,n2
"""
Then place contains
@@ -95,6 +98,7 @@ Feature: Updates of address interpolation objects
| object | type |
| N1:place | house |
| N2:place | house |
| W33:highway | residential |
And location_property_osmline contains exactly
| object |
| 99:5 |

View File

@@ -136,12 +136,14 @@ Feature: Update of postcode only objects
"""
n1 Taddr:housenumber=3
n2 Taddr:housenumber=17
w33 Thighway=residential Nn1,n2
w34 Tpostcode=4456 Nn1,n2
"""
Then place contains exactly
| object | type |
| N1:place | house |
| N2:place | house |
| W33:highway | residential |
| W34:place | postcode |
When updating osm data
@@ -152,6 +154,7 @@ Feature: Update of postcode only objects
| object | type |
| N1:place | house |
| N2:place | house |
| W33:highway | residential |
| W34:place | houses |
When indexing
Then location_property_osmline contains exactly
@@ -161,3 +164,4 @@ Feature: Update of postcode only objects
| object | type |
| N1:place | house |
| N2:place | house |
| W33:highway | residential |