S3 method implementation for converting dbSpatial
objects to sf
objects.
Usage
# S3 method for class 'dbSpatial'
st_as_sf(x, geomName = "geom", select = tidyselect::everything(), ...)
Arguments
- x
A
dbSpatial
object to convert- geomName
character string
. The geometry column name in thedbSpatial
object. Default:"geom"
.- select
Columns to retain in output (default: all columns)
- ...
Additional arguments passed to
sf::st_read
Details
This method handles conversion of dbSpatial
to sf
objects using:
Dynamic column selection via tidyselect semantics
Automatic geometry column preservation
SQL-level column subsetting for efficiency
See also
Other dbSpatial:
as_dbSpatial()
,
dbSpatial
,
show()
,
vect,dbSpatial-method