2 Feature: Update of simple objects
3 Testing simple updating functionality
5 Scenario: Do delete small boundary features
7 | osm | class | type | admin | geometry |
8 | R1 | boundary | administrative | 3 | poly-area:1.0 |
11 | object | rank_search |
13 When marking for delete R1
14 Then placex has no entry for R1
16 Scenario: Do not delete large boundary features
18 | osm | class | type | admin | geometry |
19 | R1 | boundary | administrative | 3 | poly-area:5.0 |
22 | object | rank_search |
24 When marking for delete R1
26 | object | rank_search |
29 Scenario: Do delete large features of low rank
30 Given the named places
31 | osm | class | type | geometry |
32 | W1 | place | house | poly-area:5.0 |
33 | R1 | natural | wood | poly-area:5.0 |
34 | R2 | highway | residential | poly-area:5.0 |
37 | object | rank_address |
41 When marking for delete R1,R2,W1
42 Then placex has no entry for W1
43 Then placex has no entry for R1
44 Then placex has no entry for R2
46 Scenario: type mutation
48 | osm | class | type | geometry |
49 | N3 | shop | toys | 1 -1 |
52 | object | class | type | centroid |
53 | N3 | shop | toys | 1 -1 |
55 | osm | class | type | geometry |
56 | N3 | shop | grocery | 1 -1 |
58 | object | class | type | centroid |
59 | N3 | shop | grocery | 1 -1 |
61 Scenario: remove postcode place when house number is added
63 | osm | class | type | postcode | geometry |
64 | N3 | place | postcode | 12345 | 1 -1 |
67 | object | class | type |
68 | N3 | place | postcode |
70 | osm | class | type | postcode | housenr | geometry |
71 | N3 | place | house | 12345 | 13 | 1 -1 |
73 | object | class | type |
74 | N3 | place | house |
76 Scenario: remove boundary when changing from polygon to way
81 | osm | class | type | name | admin | geometry |
82 | W1 | boundary | administrative | Haha | 5 | (1, 2, 4, 3, 1) |
88 | osm | class | type | name | admin | geometry |
89 | W1 | boundary | administrative | Haha | 5 | 1, 2, 4, 3 |
90 Then placex has no entry for W1
93 Scenario: update rank when boundary is downgraded from admin to historic
98 | osm | class | type | name | admin | geometry |
99 | W1 | boundary | administrative | Haha | 5 | (1, 2, 4, 3, 1) |
102 | object | rank_address |
105 | osm | class | type | name | admin | geometry |
106 | W1 | boundary | historic | Haha | 5 | (1, 2, 4, 3, 1) |
108 | object | rank_address |