Guest User

Untitled

a guest
Dec 27th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. R version 3.2.3 (2015-12-10)
  2. Platform: x86_64-w64-mingw32/x64 (64-bit)
  3. Running under: Windows >= 8 x64 (build 9200)
  4.  
  5. [...]
  6.  
  7. other attached packages:
  8. rgdal_1.1-10
  9. gdalUtils_2.0.1.7
  10. RPostgreSQL_0.4-1
  11.  
  12. library(rpostgis)
  13. conn <- dbConnect(drv = "PostgreSQL", host = "localhost", dbname = "rpostgis", user = "postgres", password = "postgres_password")
  14.  
  15. library("rworldmap")
  16. world <- getMap()
  17. pgInsert(conn, "world", world, new.id = "gid")
  18.  
  19. world.db <- pgGetGeom(conn, "world")
Add Comment
Please, Sign In to add comment