powered by
dbConnect for drawings that may be read by package sf
# S4 method for SFSQLDriver dbConnect(drv, DSN = "", readonly = TRUE, ...)
SFSQLDriver created by SFSQL()
SFSQL()
data source name, may be a file, or folder path, database connection string, or URL
open in readonly mode (TRUE is the only option)
TRUE
ignored
The 'OGRSQL' available is documented with GDAL: https://gdal.org/user/ogr_sql_dialect.html
afile <- system.file("gpkg/nc.gpkg", package = "sf", mustWork = TRUE) db <- dbConnect(SFSQL(), afile) dbSendQuery(db, 'SELECT * FROM "nc.gpkg"')
Run the code above in your browser using DataLab