Skip to content

Instantly share code, notes, and snippets.

@molind
Created September 21, 2017 13:44
Show Gist options
  • Save molind/db2f8c723982499baa633bbbf1d4386b to your computer and use it in GitHub Desktop.
Save molind/db2f8c723982499baa633bbbf1d4386b to your computer and use it in GitHub Desktop.
imposm3 and hstore
areas:
area_tags: [buildings, landuse, leisure, natural, aeroway]
linear_tags: [highway, barrier]
tags:
load_all: true
exclude: [created_by, source, "tiger:*"]
tables:
polygons:
type: polygon
columns:
- {name: osm_id, type: id}
- {name: geom, type: geometry}
- {name: tags, type: hstore_tags}
mapping:
__any__: [__any__]
lines:
type: linestring
columns:
- {name: osm_id, type: id}
- {name: geom, type: geometry}
- {name: tags, type: hstore_tags}
mapping:
__any__: [__any__]
points:
type: point
columns:
- {name: osm_id, type: id}
- {name: geom, type: geometry}
- {name: tags, type: hstore_tags}
mapping:
__any__: [__any__]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment