Guest User

Untitled

a guest
Nov 22nd, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. sudo add-apt-repository ppa:ubuntugis/ppa
  2. sudo apt update
  3. sudo apt install postgresql
  4. sudo apt install postgis
  5.  
  6. sudo su postgres
  7. psql
  8. DROP DATABASE globcit;
  9. CREATE DATABASE globcit;
  10. q
  11. exit
  12.  
  13. ogr2ogr -f PostgreSQL PG:dbname=globcit -nlt GEOMETRY
  14. -sql "select * from multipolygons where natural='water'"
  15. -progress lakes turkey-latest.osm.pbf
  16.  
  17. FAILURE:
  18. Unable to open datasource `lakes' with the following drivers.
  19. -> PCIDSK
  20. -> netCDF
  21. -> JP2OpenJPEG
  22. -> PDF
  23. -> ESRI Shapefile
  24. ....
Add Comment
Please, Sign In to add comment