mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-15 10:57:58 +00:00
27 lines
880 B
Gherkin
27 lines
880 B
Gherkin
@DB
|
|
Feature: Update of simple objects by osm2pgsql
|
|
Testing basic update functions of osm2pgsql.
|
|
|
|
Scenario: Import object with two main tags
|
|
When loading osm data
|
|
"""
|
|
n1 Ttourism=hotel,amenity=restaurant,name=foo
|
|
n2 Tplace=locality,name=spotty
|
|
"""
|
|
Then place contains
|
|
| object | type | name
|
|
| N1:tourism | hotel | 'name' : 'foo'
|
|
| N1:amenity | restaurant | 'name' : 'foo'
|
|
| N2:place | locality | 'name' : 'spotty'
|
|
When updating osm data
|
|
"""
|
|
n1 dV Ttourism=hotel,name=foo
|
|
n2 dD
|
|
"""
|
|
Then place has no entry for N1:amenity
|
|
And place has no entry for N2
|
|
And place contains
|
|
| object | class | type | name
|
|
| N1:tourism | tourism | hotel | 'name' : 'foo'
|
|
|