
# imposm3 mapping file for https://github.com/osm2vectortiles/imposm3
# Warning: this is not the official imposm3

# landuse values , see http://taginfo.openstreetmap.org/keys/landuse#values
def_lm_mapping_landuse: &lm_mapping_landuse
  - forest

def_poi_fields: &lm_fields
  - name: osm_id
    type: id
  - name: geometry
    type: geometry
  - name: name
    key: name
    type: string
  - name: name_en
    key: name:en
    type: string
  - name: name_de
    key: name:de
    type: string
  - name: tags
    type: hstore_tags
  - name: subclass
    type: mapping_value
  - name: mapping_key
    type: mapping_key
  - name: station
    key: station
    type: string
  - name: funicular
    key: funicular
    type: string
  - name: information
    key: information
    type: string
  - name: uic_ref
    key: uic_ref
    type: string
  - name: religion
    key: religion
    type: string
  - name: level
    key: level
    type: integer
  - name: indoor
    key: indoor
    type: bool
  - name: layer
    key: layer
    type: integer
  - name: sport
    key: sport
    type: string

def_lm_mapping: &lm_mapping
  landuse: *lm_mapping_landuse

tables:
  # etldoc: imposm3 -> osm_lm_point
  lm_point:
    type: point
    columns: *lm_fields
    filters:
      require:
        name: ["__any__"]
    mapping: *lm_mapping

  # etldoc: imposm3 -> osm_lm_polygon
  lm_polygon:
    type: polygon
    columns: *lm_fields
    filters:
      require:
        name: ["__any__"]
    mapping: *lm_mapping
