Skip to content

Latest commit

 

History

History
executable file
·
17 lines (17 loc) · 934 Bytes

import_osm.MD

File metadata and controls

executable file
·
17 lines (17 loc) · 934 Bytes

Make sure you already have osm2pgsql, wget install on your machine,### Download the OSM PBF of your region on GEOFABRIK

    mkdir geosmBackend/DB/working_dir
    cd geosmBackend/DB/working_dir
    wget https://download.geofabrik.de/africa/cameroon-latest.osm.pbf -O osm.pbf 

Import OSM PBF in database

Create a database with name $db (choose your favorite name) Replace $db by the name of your database

$ osm2pgsql --cache 10000 --number-processes 5 --extra-attributes --slim -G -c -U postgres -d $db -H localhost -W --hstore-all -S ./data-osm.style osm.pbf
$ chmod +x ../create_index.sh
$ ../create_index.sh

To update the map: