imposm3 icon indicating copy to clipboard operation
imposm3 copied to clipboard

beginners friendly "import everything"

Open ulutomaz opened this issue 5 years ago • 1 comments

Hello,

sorry for asking this, but I have been struggling with documentation and various imports, but can't seem to find a mapping configuration to simply import everything from osm.pbf file into PostGIS.

It is really hard for a newcomer to even know what exactly to select as a source for mapping. I just want all.

I found any : [any ] and "load_all", but the example for that kind of mapping.json would be so helpful.

BR, Tomaz

ulutomaz avatar Jan 22 '20 22:01 ulutomaz

I'm using this mapping:

tags:
  load_all: true
  exclude: [created_by, source]

tables:
  all:
    type: geometry
    columns:
      - name: osm_id
        type: id
      - name: tags
        type: hstore_tags
      - name: geometry
        type: geometry
    type_mappings:
      points:
        __any__: [__any__]
      linestrings:
        __any__: [__any__]
      polygons:
        __any__: [__any__]

Miroff avatar Jun 07 '20 08:06 Miroff