1 Feature: Entrance nodes are recorded
2 Test that updated entrance nodes are saved
4 Scenario: A building with a newly tagged entrance
9 | osm | class | type | geometry |
10 | W1 | building | yes | (1,2,3,4,1) |
15 Then placex contains exactly
18 Then placex_entrance contains exactly
19 | place_id | osm_id | type | location!wkt | extratags |
21 | osm | class | type | geometry |
22 | N1 | entrance | main | 1 |
23 | W1 | building | yes | (1,2,3,4,1) |
24 Then placex contains exactly
27 Then placex_entrance contains exactly
28 | place_id | osm_id | type | location!wkt | extratags |
29 | 1 | 1 | main | 1 | - |
31 Scenario: A building with a updated entrance node
36 | osm | class | type | geometry |
37 | N1 | barrier | gate | 1 |
38 | W1 | building | yes | (1,2,3,4,1) |
43 Then placex contains exactly
47 Then placex_entrance contains exactly
48 | place_id | osm_id | type | location!wkt | extratags |
50 | osm | class | type | geometry |
51 | N1 | entrance | main | 1 |
52 | W1 | building | yes | (1,2,3,4,1) |
53 Then placex contains exactly
57 And placex_entrance contains exactly
58 | place_id | osm_id | type | location!wkt | extratags |
59 | 2 | 1 | main | 1 | - |
61 Scenario: A building with a removed entrance
66 | osm | class | type | geometry |
67 | N1 | entrance | main | 1 |
68 | W1 | building | yes | (1,2,3,4,1) |
73 Then placex contains exactly
76 And placex_entrance contains exactly
77 | place_id | osm_id | type | location!wkt | extratags |
78 | 1 | 1 | main | 1 | - |
79 When marking for delete N1
81 | osm | class | type | geometry |
82 | W1 | building | yes | (2,3,4,2) |
83 Then placex contains exactly
86 And placex_entrance contains exactly
87 | place_id | osm_id | type | location!wkt | extratags |
89 Scenario: A building with a removed and remaining entrance
94 | osm | class | type | geometry |
95 | N1 | entrance | main | 1 |
96 | N3 | entrance | yes | 3 |
97 | W1 | building | yes | (1,2,3,4,1) |
100 | 1 | 1, 2, 3, 4, 1 |
102 Then placex contains exactly
103 | object | place_id |
105 And placex_entrance contains exactly
106 | place_id | osm_id | type | location!wkt | extratags |
107 | 1 | 1 | main | 1 | - |
108 | 1 | 3 | yes | 3 | - |
109 When marking for delete N1
111 | osm | class | type | geometry |
112 | W1 | building | yes | (2,3,4,2) |
113 Then placex contains exactly
114 | object | place_id |
116 And placex_entrance contains exactly
117 | place_id | osm_id | type | location!wkt | extratags |
118 | 1 | 3 | yes | 3 | - |