2 Feature: Import of simple objects by osm2pgsql
 
   3     Testing basic tagging in osm2pgsql imports.
 
   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         And 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
 
  51      Scenario: Landuses are only imported when named
 
  62           | 1  | 'landuse' : 'residential', 'name' : 'rainbow' | 100 101 102 100
 
  63           | 2  | 'landuse' : 'residential'                     | 200 202 203 200
 
  65         Then table place contains
 
  66           | object | class   | type
 
  67           | W1     | landuse | residential
 
  68         And table place has no entry for W2