Skip to content

Working with Imposm3

Knut Ole edited this page Jan 30, 2015 · 6 revisions

Imposm3 @ GitHub

Put OSM data in PostGIS database

    // bleeding edge imposm3  
    imposm3 import \  
      -connection postgis://gisuser:gisuser@localhost/osmdb \
      -mapping mapping.json \  
      -write -appendcache -read germany-latest.osm.pbf  
      -deployproduction

    // old version of imposm  
    imposm -U gisuser -d osmdb -m osm-bright/imposm-mapping.py \
      --read --write --optimize --deploy-production-tables ../osm/planet-141229.osm.pbf
    
    // old way
    osm2pgsql -s -U gisuser -d osmdb new-york-latest.osm

Make sure db is trusted tho (NB! not secure?):

edit config file:

nano /etc/postgresql/9.4/main/pg_hba.conf

add this line:

local   all             all                                     trust

refs:

(py script here) (from mapbox)
mapping

Clone this wiki locally