-
Notifications
You must be signed in to change notification settings - Fork 23
Import OSM India data locally
Arun Ganesh edited this page Jul 24, 2019
·
1 revision
Setup
- Setup postgres with postgis
- Setup osm2pgsql and download the default osm import schema default.style
- Create an empty postgis database called
gis
for the data as the userpostgres
createdb -U postgres gis
psql -U postgres -d gis -c 'create extension postgis;'
psql -U postgres -d gis -c 'create extension hstore;'
Import
- Download the latest India extract from Geofabrik: india-latest.osm.pbf
- Import the pbf into postgres database
gis
using osm2pgsql
osm2pgsql -U postgres -H localhost -P 5432 ~/Downloads/india-latest.osm.pbf --cache 6000 --hstore-column 'name:' --style ~/Downloads/default.style