% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/st_as_sf.R
\name{st_as_sf.dbSpatial}
\alias{st_as_sf.dbSpatial}
\title{Convert dbSpatial objects to sf objects}
\usage{
\method{st_as_sf}{dbSpatial}(x, geomName = "geom", select = tidyselect::everything(), ...)
}
\arguments{
\item{x}{A \code{\link{dbSpatial}} object to convert}

\item{geomName}{\code{character string}. The geometry column name in the
\code{\link{dbSpatial}} object. Default: \code{"geom"}.}

\item{select}{Columns to retain in output (default: all columns)}

\item{...}{Additional arguments passed to \code{\link[sf:st_read]{sf::st_read}}}
}
\value{
An \code{\link[sf:sf]{sf::sf}} object
}
\description{
S3 method implementation for converting \code{dbSpatial} objects to \code{sf} objects.
}
\details{
This method handles conversion of \code{\link{dbSpatial}} to \code{\link[sf:sf]{sf::sf}} objects using:
\itemize{
\item Dynamic column selection via tidyselect semantics
\item Automatic geometry column preservation
\item SQL-level column subsetting for efficiency
}
}
\seealso{
Other dbSpatial: 
\code{\link{as_dbSpatial}()},
\code{\link{dbSpatial}},
\code{\link{show,dbSpatial-method}},
\code{\link{vect,dbSpatial-method}}
}
\concept{dbSpatial}
