2 Feature: Update of simple objects
5 Scenario: Remove name from a landuse object
7 | osm_id | class | type | name
8 | 1 | landuse | wood | 'name' : 'Foo'
10 Then table placex contains
11 | object | class | type | name
12 | N1 | landuse| wood | 'name' : 'Foo'
13 When updating place nodes
14 | osm_id | class | type
16 Then table placex has no entry for N1
19 Scenario: Do delete small boundary features
21 | osm_type | osm_id | class | type | admin_level | geometry
22 | R | 1 | boundary | administrative | 3 | (0 0, 1 0, 1 1, 0 1, 0 0)
24 Then table placex contains
25 | object | rank_search
27 When marking for delete R1
28 Then table placex has no entry for R1
30 Scenario: Do not delete large boundary features
32 | osm_type | osm_id | class | type | admin_level | geometry
33 | R | 1 | boundary | administrative | 3 | (0 0, 2 0, 2 2.1, 0 2, 0 0)
35 Then table placex contains
36 | object | rank_search
38 When marking for delete R1
39 Then table placex contains
40 | object | rank_search
43 Scenario: Do delete large features of low rank
44 Given the named place areas
45 | osm_type | osm_id | class | type | geometry
46 | W | 1 | place | house | (0 0, 2 0, 2 2.1, 0 2, 0 0)
47 | R | 1 | boundary | national_park | (0 0, 2 0, 2 2.1, 0 2, 0 0)
49 Then table placex contains
50 | object | rank_address
53 When marking for delete R1,W1
54 Then table placex has no entry for W1
55 Then table placex has no entry for R1
58 Scenario: type mutation
60 | osm_id | class | type | geometry
61 | 3 | shop | toys | 1 -1
63 Then table placex contains
64 | object | class | type
66 When updating place nodes
67 | osm_id | class | type | geometry
68 | 3 | shop | grocery | 1 -1
69 Then table placex contains
70 | object | class | type
74 Scenario: remove postcode place when house number is added
76 | osm_id | class | type | postcode | geometry
77 | 3 | place | postcode | 12345 | 1 -1
79 Then table placex contains
80 | object | class | type
81 | N3 | place | postcode
82 When updating place nodes
83 | osm_id | class | type | postcode | housenumber | geometry
84 | 3 | place | house | 12345 | 13 | 1 -1
85 Then table placex contains
86 | object | class | type