Description Usage Arguments Value Creation notes Author(s) Examples
Is basically a wrapper around
sf::st_read()
that does a necessary
transformation on the SQL geometry datatype to read in as a sf table
1 | sf_readSQL(conn, schema, tableName, geomCol)
|
conn |
A |
schema |
Name of schema that table is under. character vector of length 1. |
tableName |
Name of table. character vector of length 1. |
geomCol |
Character vector of length 1 containing the name of the geometry column in the SQL table |
An sf object
First created in 2020-11-03 with the script OSMdownloadAndSFtoSQLInterface.R in the MARC-KC/HelpLibrary Repository
Jacob Peterson
1 2 3 4 5 6 7 8 9 | ## Not run:
library(DBI)
con <- connectODBC("DB_MARC_PRD.marcdl")
#This is not set up to be a real example
tableColNames <- sf_readSQL(con, "marcdl", "TestTable", "geom")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.