2 Feature: Update parenting of objects
4 Scenario: POI inside building inherits addr:street change
5 Given the scene building-on-street-corner
7 | osm | class | type | geometry |
8 | N1 | amenity | bank | :n-inner |
9 | N2 | shop | bakery | :n-edge-NS |
10 | N3 | shop | supermarket| :n-edge-WE |
12 | osm | class | type | street | housenr | geometry |
13 | W1 | building | yes | nowhere | 3 | :w-building |
15 | osm | class | type | name | geometry |
16 | W2 | highway | primary | bar | :w-WE |
17 | W3 | highway | residential | foo | :w-NS |
20 | object | parent_place_id | housenumber |
26 | osm | class | type | street | addr_place | housenr | geometry |
27 | W1 | building | yes | foo | nowhere | 3 | :w-building |
29 | osm | class | type | name | geometry |
30 | N3 | shop | supermarket| well | :n-edge-WE |
32 | object | parent_place_id | housenumber |
39 Scenario: Housenumber is reparented when street gets name matching addr:street
46 | osm | class | type | name | geometry |
47 | W1 | highway | residential | A street | 1,2 |
48 | W2 | highway | residential | B street | 3,4 |
50 | osm | class | type | housenr | street | geometry |
51 | N1 | building | yes | 3 | X street | 10 |
54 | object | parent_place_id |
57 | osm | class | type | name | geometry |
58 | W2 | highway | residential | X street | 3,4 |
60 | object | parent_place_id |
64 Scenario: Housenumber is reparented when street looses name matching addr:street
71 | osm | class | type | name | geometry |
72 | W1 | highway | residential | A street | 1,2 |
73 | W2 | highway | residential | X street | 3,4 |
75 | osm | class | type | housenr | street | geometry |
76 | N1 | building | yes | 3 | X street | 10 |
79 | object | parent_place_id |
82 | osm | class | type | name | geometry |
83 | W2 | highway | residential | B street | 3,4 |
85 | object | parent_place_id |
89 Scenario: Housenumber is reparented when street gets name matching addr:street
96 | osm | class | type | name | geometry |
97 | W1 | highway | residential | A street | 1,2 |
98 | W2 | highway | residential | B street | 3,4 |
100 | osm | class | type | housenr | street | geometry |
101 | N1 | building | yes | 3 | X street | 10 |
104 | object | parent_place_id |
107 | osm | class | type | name | geometry |
108 | W2 | highway | residential | X street | 3,4 |
110 | object | parent_place_id |
114 # Invalidation of geometries currently disabled for addr:place matches.
116 Scenario: Housenumber is reparented when place is renamed to matching addr:place
123 | osm | class | type | name | geometry |
124 | W1 | highway | residential | A street | 1,2 |
125 | N5 | place | village | Bdorf | 5 |
126 | N4 | place | village | Other | 4 |
128 | osm | class | type | housenr | addr_place | geometry |
129 | N1 | building | yes | 3 | Cdorf | 10 |
132 | object | parent_place_id |
135 | osm | class | type | name | geometry |
136 | N5 | place | village | Cdorf | 5 |
138 | object | parent_place_id |
142 Scenario: Housenumber is reparented when it looses a matching addr:place
149 | osm | class | type | name | geometry |
150 | W1 | highway | residential | A street | 1,2 |
151 | N5 | place | village | Bdorf | 5 |
152 | N4 | place | village | Other | 4 |
154 | osm | class | type | housenr | addr_place | geometry |
155 | N1 | building | yes | 3 | Bdorf | 10 |
158 | object | parent_place_id |
161 | osm | class | type | name | geometry |
162 | N5 | place | village | Cdorf | 5 |
164 | object | parent_place_id |