R/rpostgis-package.R

## rpostgis

##' R interface to a PostGIS database.
##'
##' 'rpostgis' provides an interface between R and
##' 'PostGIS'-enabled 'PostgreSQL' databases to transparently transfer
##'  spatial data. Both vector (points, lines, polygons) and raster
##'  data are supported in read and write modes. Also provides
##'  convenience functions to execute common procedures in
##'  'PostgreSQL/PostGIS'. For a list of documented functions, use
##'  \code{library(help = "rpostgis")}.
##'
##' A typical session starts by establishing the connection to a
##' working PostgreSQL database:
##'
##'     library(rpostgis)
##'     con <- dbConnect("PostgreSQL", dbname = <dbname>, host = <host>,
##'             user = <user>, password = <password>)
##'
##' For example, this could be:
##'
##'     con <- dbConnect("PostgreSQL", dbname = "rpostgis", host = "localhost",
##'         user = "postgres", password = "postgres")
##'
##' The next step typically involves checking if PostGIS was installed
##' on the working database, and if not try to install it:
##'
##'     pgPostGIS(con)
##'
##' The function should return \code{TRUE} for all \code{pg-}
##' functions to work.
##'
##' Finally, at the end of an interactive session, the connection to
##' the database should be closed:
##'
##'     dbDisconnect(con)
##'
##' @docType package
##' @name rpostgis
##' @import RPostgreSQL
##' @import DBI
##' @importFrom methods slot "slot<-"
##' @author Mathieu Basille (\email{[email protected]@ufl.edu}) and David
##'     Bucklin (\email{[email protected]@gmail.com})
NULL

Try the rpostgis package in your browser

Any scripts or data that you put into this service are public.

rpostgis documentation built on Aug. 17, 2018, 5:04 p.m.