2 Feature: Import of simple objects by osm2pgsql
3 Testing basic functions of osm2pgsql.
5 Scenario: Import simple objects
8 | 1 | 'amenity' : 'prison', 'name' : 'foo'
20 | 1 | 'shop' : 'toys', 'name' : 'tata' | 100 101 102
21 | 2 | 'ref' : '45' | 200 201 202 203 200
22 Given the osm relations:
24 | 1 | 'type' : 'multipolygon', 'tourism' : 'hotel', 'name' : 'XZ' | N1,W2
26 Then table place contains
27 | object | class | type | name
28 | N1 | amenity | prison | 'name' : 'foo'
29 | W1 | shop | toys | 'name' : 'tata'
30 | R1 | tourism | hotel | 'name' : 'XZ'
32 Scenario: Import object with two main tags
35 | 1 | 'tourism' : 'hotel', 'amenity' : 'restaurant', 'name' : 'foo'
37 Then table place contains
38 | object | class | type | name
39 | N1:tourism | tourism | hotel | 'name' : 'foo'
40 | N1:amenity | amenity | restaurant | 'name' : 'foo'
42 Scenario: Import stand-alone house number with postcode
45 | 1 | 'addr:housenumber' : '4', 'addr:postcode' : '3345'
47 Then table place contains
48 | object | class | type