]> git.openstreetmap.org Git - nominatim.git/blob - tests/features/osm2pgsql/update/relation.feature
add functional tests
[nominatim.git] / tests / features / osm2pgsql / update / relation.feature
1 @DB
2 Feature: Update of relations by osm2pgsql
3     Testing relation update by osm2pgsql.
4
5 Scenario: Remove all members of a relation
6         Given the osm nodes:
7           | id | tags
8           | 1  | 'amenity' : 'prison', 'name' : 'foo'
9         Given the osm nodes:
10           | id  | geometry
11           | 200 | 0 0
12           | 201 | 0 0.0001
13           | 202 | 0.0001 0.0001
14           | 203 | 0.0001 0
15         Given the osm ways:
16           | id | tags                             | nodes
17           | 2  | 'ref' : '45'                     | 200 201 202 203 200
18         Given the osm relations:
19           | id | tags                                                        | members
20           | 1  | 'type' : 'multipolygon', 'tourism' : 'hotel', 'name' : 'XZ' | W2
21         When loading osm data
22         Then table place contains
23           | object | class   | type   | name
24           | R1     | tourism | hotel  | 'name' : 'XZ'
25         Given the osm relations:
26           | action | id | tags                                                        | members
27           | M      | 1  | 'type' : 'multipolygon', 'tourism' : 'hotel', 'name' : 'XZ' | N1
28           When updating osm data
29         Then table place has no entry for R1
30