Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo add-apt-repository ppa:ubuntugis/ppa
- sudo apt update
- sudo apt install postgresql
- sudo apt install postgis
- sudo su postgres
- psql
- DROP DATABASE globcit;
- CREATE DATABASE globcit;
- q
- exit
- ogr2ogr -f PostgreSQL PG:dbname=globcit -nlt GEOMETRY
- -sql "select * from multipolygons where natural='water'"
- -progress lakes turkey-latest.osm.pbf
- FAILURE:
- Unable to open datasource `lakes' with the following drivers.
- -> PCIDSK
- -> netCDF
- -> JP2OpenJPEG
- -> PDF
- -> ESRI Shapefile
- ....
Add Comment
Please, Sign In to add comment