2 Feature: Update parenting of objects
4 Scenario: POI inside building inherits addr:street change
6 | 10 | | | | | | | 11 |
10 | 12 | | 8 | | | 7 | | |
12 | osm | class | type |
13 | N1 | amenity | bank |
15 | osm | class | type | street | housenr | geometry |
16 | W1 | building | yes | nowhere | 3 | (5,6,7,8,5) |
18 | osm | class | type | name | geometry |
19 | W2 | highway | primary | bar | 10,11 |
20 | W3 | highway | residential | foo | 10,12 |
23 | object | parent_place_id | housenumber |
27 | osm | class | type | street | addr_place | housenr | geometry |
28 | W1 | building | yes | foo | nowhere | 3 | (5,6,7,8,5) |
30 | osm | class | type | name |
31 | N1 | amenity | bank | well |
33 | object | parent_place_id | housenumber |
38 Scenario: Housenumber is reparented when street gets name matching addr:street
45 | osm | class | type | name | geometry |
46 | W1 | highway | residential | A street | 1,2 |
47 | W2 | highway | residential | B street | 3,4 |
49 | osm | class | type | housenr | street | geometry |
50 | N1 | building | yes | 3 | X street | 10 |
53 | object | parent_place_id |
56 | osm | class | type | name | geometry |
57 | W2 | highway | residential | X street | 3,4 |
59 | object | parent_place_id |
63 Scenario: Housenumber is reparented when street looses name matching addr:street
70 | osm | class | type | name | geometry |
71 | W1 | highway | residential | A street | 1,2 |
72 | W2 | highway | residential | X street | 3,4 |
74 | osm | class | type | housenr | street | geometry |
75 | N1 | building | yes | 3 | X street | 10 |
78 | object | parent_place_id |
81 | osm | class | type | name | geometry |
82 | W2 | highway | residential | B street | 3,4 |
84 | object | parent_place_id |
88 Scenario: Housenumber is reparented when street gets name matching addr:street
95 | osm | class | type | name | geometry |
96 | W1 | highway | residential | A street | 1,2 |
97 | W2 | highway | residential | B street | 3,4 |
99 | osm | class | type | housenr | street | geometry |
100 | N1 | building | yes | 3 | X street | 10 |
103 | object | parent_place_id |
106 | osm | class | type | name | geometry |
107 | W2 | highway | residential | X street | 3,4 |
109 | object | parent_place_id |
113 # Invalidation of geometries currently disabled for addr:place matches.
115 Scenario: Housenumber is reparented when place is renamed to matching addr:place
122 | osm | class | type | name | geometry |
123 | W1 | highway | residential | A street | 1,2 |
124 | N5 | place | village | Bdorf | 5 |
125 | N4 | place | village | Other | 4 |
127 | osm | class | type | housenr | addr_place | geometry |
128 | N1 | building | yes | 3 | Cdorf | 10 |
131 | object | parent_place_id |
134 | osm | class | type | name | geometry |
135 | N5 | place | village | Cdorf | 5 |
137 | object | parent_place_id |
141 Scenario: Housenumber is reparented when it looses a matching addr:place
148 | osm | class | type | name | geometry |
149 | W1 | highway | residential | A street | 1,2 |
150 | N5 | place | village | Bdorf | 5 |
151 | N4 | place | village | Other | 4 |
153 | osm | class | type | housenr | addr_place | geometry |
154 | N1 | building | yes | 3 | Bdorf | 10 |
157 | object | parent_place_id |
160 | osm | class | type | name | geometry |
161 | N5 | place | village | Cdorf | 5 |
163 | object | parent_place_id |