Learn R Programming

rpostgis (version 1.0.0)

pgGetLines: Load a PostGIS linestring geometry from a PostgreSQL table/view into R.

Description

Load a PostGIS linestring geometry from a PostgreSQL table/view into R.

Usage

pgGetLines(conn, name, geom = "geom", gid = NULL, other.cols = "*", clauses = NULL)

Arguments

Value

SpatialLinesDataFrame or SpatialLines

Examples

Run this code
## Not run: 
# pgGetLines(conn, c("schema", "tablename"))
# pgGetLines(conn, c("schema", "roads"), geom = "roadgeom", gid = "road_ID",
#     other.cols = NULL, clauses  = "WHERE field = 'highway'")
# ## End(Not run)

Run the code above in your browser using DataLab