Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2016 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f9b34c34a2107fd4fb3a5dfa5931b78f to your computer and use it in GitHub Desktop.
Save anonymous/f9b34c34a2107fd4fb3a5dfa5931b78f to your computer and use it in GitHub Desktop.
# Configuration file for OSM import
#
# put here the name of keys for ways that are assumed to be polygons if they are closed
# see http://wiki.openstreetmap.org/wiki/Map_Features
closed_ways_are_polygons=aeroway,amenity,boundary,building,craft,geological,historic,landuse,leisure,military,natural,office,place,shop,sport,tourism
[multipolygons]
# common attributes
# note: for multipolygons, osm_id=yes instanciates a osm_id field for the id of relations
# and a osm_way_id field for the id of closed ways. Both fields are exclusively set.
osm_id=yes
osm_version=yes
osm_timestamp=yes
osm_uid=yes
osm_user=no
osm_changeset=no
# keys to report as OGR fields
attributes=name,building,lacounty:ain,lacounty:bld_id,height,ele,start_date,
# keys that should NOT be reported in the "other_tags" field
ignore=area,created_by,converted_by,source,time,ele,note,openGeoDB:,fixme,FIXME
# uncomment to avoid creation of "other_tags" field
#other_tags=no
height_type=Real
ele_type=Real
start_date_type=DateTime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment