powered by
Load a PostGIS linestring geometry from a PostgreSQL table/view into R.
pgGetLines( conn, name, geom = "geom", gid = NULL, other.cols = "*", clauses = NULL )
SpatialLinesDataFrame or SpatialLines
David Bucklin david.bucklin@gmail.com
Mathieu Basille basille@ufl.edu
if (FALSE) { pgGetLines(conn, c("schema", "tablename")) pgGetLines(conn, c("schema", "roads"), geom = "roadgeom", gid = "road_ID", other.cols = NULL, clauses = "WHERE field = 'highway'") }
Run the code above in your browser using DataLab