2 Feature: Update of simple objects by osm2pgsql
3 Testing basic update functions of osm2pgsql.
5 Scenario: Import object with two main tags
8 n1 Ttourism=hotel,amenity=restaurant,name=foo
9 n2 Tplace=locality,name=spotty
12 | object | type | name+name |
13 | N1:tourism | hotel | foo |
14 | N1:amenity | restaurant | foo |
15 | N2:place | locality | spotty |
16 When updating osm data
18 n1 dV Ttourism=hotel,name=foo
21 Then place has no entry for N1:amenity
22 And place has no entry for N2
24 | object | class | type | name |
25 | N1:tourism | tourism | hotel | 'name' : 'foo' |
27 Scenario: Downgrading a highway to one that is dropped without name
32 w1 Thighway=residential Nn100,n101
37 When updating osm data
39 w1 Thighway=service Nn100,n101
41 Then place has no entry for W1
43 Scenario: Downgrading a highway when a second tag is present
48 w1 Thighway=residential,tourism=hotel Nn100,n101
54 When updating osm data
56 w1 Thighway=service,tourism=hotel Nn100,n101
58 Then place has no entry for W1:highway