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

Share:

Description

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

Usage

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

Value

SpatialLinesDataFrame or SpatialLines

Author(s)

David Bucklin dbucklin@ufl.edu

Mathieu Basille basille@ufl.edu

Examples

1
2
3
4
5
6
## 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)