1 Feature: Updates for address computation
2 Tests for correctly updating address assignments on changes.
4 Scenario: Address gets updated when an area is extended
6 | 1 | | 2 | | 3 | | 4 |
8 | 8 | | 7 | | 6 | | 5 |
10 | osm | class | type | admin | name | geometry |
11 | R1 | boundary | administrative | 6 | Fooo | (1,4,5,8,1) |
12 | R2 | boundary | administrative | 8 | Barr | (3,4,5,6,3) |
14 | osm | class | type | geometry |
15 | N1 | place | suburb | 9 |
17 Then place_addressline contains exactly
23 | osm | class | type | admin | name | geometry |
24 | R2 | boundary | administrative | 8 | Barr | (2,4,5,7,2) |
25 Then place_addressline contains exactly
31 Scenario: Address gets updated when an area is reduced
33 | 1 | | 2 | | 3 | | 4 |
35 | 8 | | 7 | | 6 | | 5 |
37 | osm | class | type | admin | name | geometry |
38 | R1 | boundary | administrative | 6 | Fooo | (1,4,5,8,1) |
39 | R2 | boundary | administrative | 8 | Barr | (2,4,5,7,2) |
41 | osm | class | type | geometry |
42 | N1 | place | suburb | 9 |
44 Then place_addressline contains exactly
51 | osm | class | type | admin | name | geometry |
52 | R2 | boundary | administrative | 8 | Barr | (3,4,5,6,3) |
53 Then place_addressline contains exactly
58 Scenario: Address gets updated when an area disappears
60 | 1 | | 2 | | 3 | | 4 |
62 | 8 | | 7 | | 6 | | 5 |
64 | osm | class | type | admin | name | geometry |
65 | R1 | boundary | administrative | 6 | Fooo | (1,4,5,8,1) |
66 | R2 | boundary | administrative | 8 | Barr | (2,4,5,7,2) |
68 | osm | class | type | geometry |
69 | N1 | place | suburb | 9 |
71 Then place_addressline contains exactly
78 | osm | class | type | admin | name | geometry |
79 | R2 | boundary | administrative | 15 | Barr | (2,4,5,7,2) |
80 Then place_addressline contains exactly
86 Scenario: Address gets updated when the admin level changes
88 | 1 | | 2 | | 3 | | 4 |
90 | 8 | | 7 | | 6 | | 5 |
92 | osm | class | type | admin | name | geometry |
93 | R1 | boundary | administrative | 6 | Fooo | (1,4,5,8,1) |
94 | R2 | boundary | administrative | 8 | Barr | (2,4,5,7,2) |
96 | osm | class | type | geometry |
97 | N1 | place | suburb | 9 |
99 Then place_addressline contains exactly
100 | object | address | cached_rank_address |
106 | osm | class | type | admin | name | geometry |
107 | R1 | boundary | administrative | 5 | Fooo | (1,4,5,8,1) |
108 Then place_addressline contains exactly
109 | object | address | cached_rank_address |