View source: R/extract_soils_NRCS_SDA.R
fetch_mukeys_spatially_NRCS_SDA | R Documentation |
Spatially query mukey values for point locations from NRCS web-based SDA service
fetch_mukeys_spatially_NRCS_SDA(
x,
crs = 4326,
db = c("SSURGO", "STATSGO"),
...,
chunk_size = 50L,
progress_bar = FALSE
)
x |
A numerical two-dimensional object
(a |
crs |
An object which is a crs or from which one can be derived.
|
db |
A character string. Query mukey from the SSURGO or from the STATSGO soil database. |
... |
Currently ignored. |
chunk_size |
An integer value. The size of chunks into which
|
progress_bar |
A logical value. Display a progress bar as the code loops over the chunks? |
A named list with two elements:
ref The data reference.
mukeys A vector with a mukey value for each
locations
.
## Not run:
if (curl::has_internet()) {
locations <- matrix(
data = c(-120.325, -111.245, 39.855, 36.753),
nrow = 2
)
fetch_mukeys_spatially_NRCS_SDA(locations)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.