omniscale / imposm3

Imposm imports OpenStreetMap data into PostGIS
http://imposm.org/docs/imposm3/latest/
Apache License 2.0
719 stars 157 forks source link

In relation_member mapping is applied to member, not relation #129

Closed andreynovikov closed 7 years ago

andreynovikov commented 7 years ago

Documentation says that mapping is done on relation tags, but when I try to use type: [building] mapping it produces empty table. But when I change it to building: [__any__] mapping it produces table that contains all the buildings found in relations. But this is not what I want as it also contains all multipolygons.

andreynovikov commented 7 years ago

No, I'm wrong. But I still fail to import building relation members. Investigating it further...

andreynovikov commented 7 years ago

Ok, the title is incorrect but the bug exists. Trying to import the mapping:

tables:
  building_parts:   
    type: relation_member
    columns:         
      - name: osm_id 
        type: id
      - name: member
        type: member_id
      - name: role   
        type: member_role
      - name: type   
        key: type
        type: string
    mapping:         
      type: [building]

produces empty table unless I add:

tags:
  load_all: true
olt commented 7 years ago

load_all: true is no longer needed.