% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSURGO_spatial_query.R
\name{SoilWeb_spatial_query}
\alias{SoilWeb_spatial_query}
\title{Get SSURGO Data via Spatial Query}
\usage{
SoilWeb_spatial_query(
  bbox = NULL,
  coords = NULL,
  what = "mapunit",
  source = "soilweb"
)
}
\arguments{
\item{bbox}{a bounding box in WGS84 geographic coordinates, see examples}

\item{coords}{a coordinate pair in WGS84 geographic coordinates, see
examples}

\item{what}{data to query, currently ignored}

\item{source}{the data source, currently ignored}
}
\value{
The data returned from this function will depend on the query style.
See examples below.
}
\description{
Get SSURGO Data via Spatial Query to SoilWeb

Data are currently available from SoilWeb. These data are a snapshot of the
"official" data. The snapshot date is encoded in the "soilweb_last_update"
column in the function return value. Planned updates to this function will
include a switch to determine the data source: "official" data via USDA-NRCS
servers, or a "snapshot" via SoilWeb.
}
\note{
SDA now supports spatial queries, consider using \code{\link[=SDA_spatialQuery]{SDA_spatialQuery()}} instead.
}
\examples{
\dontshow{if (curl::has_internet()) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
\dontshow{\}) # examplesIf}

\donttest{
    # query by bbox
    SoilWeb_spatial_query(bbox=c(-122.05, 37, -122, 37.05))
    
    # query by coordinate pair
    SoilWeb_spatial_query(coords=c(-121, 38))
}

}
\author{
D.E. Beaudette
}
\keyword{manip}
