Description Usage Arguments Value Examples
Get the extent of the geometry of a PostGIS table, in the same EPSG than table.
1 | pgisGetBbox(conn, tbl, geom.col = "geometry")
|
conn |
a PostgreSQLConnection object. |
tbl |
character; table name. |
geom.col |
character; name of the geometry column (default: 'geometry). |
a bbox class object.
1 2 3 4 5 6 7 8 9 10 | library(spData)
library(sf)
library(RPostgreSQL)
data(seine)
conn = dbConnect(drv=dbDriver("PostgreSQL"), host="localhost", port=5432,
dbname="foodflows", user="milo", password="postgres")
dbWriteTable(conn, name="seine", seine, overwrite=TRUE)
bb = pgisGetBbox(conn, "seine")
(class(bb)=="bbox")
dbDisconnect(conn)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.