soilDB 2.7.0
soilDB 2.7.0 (2022-05-18)
- Spatial
- Dropped imports from
sp
andraster
which meanssoilDB
no longer requires the soon-to-retirergdal
package. - All spatial data processing has been moved to
sf
andterra
, which have been added to Suggests.- (breaking change) Classes from these packages (e.g.
sf
,SpatRaster
) will be returned by default rather thanSpatial*DataFrame
orRasterLayer
fromsp
andraster
. - (breaking change) Spatial functions that take spatial input will return the same class type as the input unless otherwise specified.
fetchSDA_spatial()
andSDA_spatialQuery()
gainas_Spatial
argument; whenTRUE
equivalent (backward compatible)sp
andraster
data types are returned.- Alternately, you may set
options(soilDB.return_Spatial=TRUE)
- (breaking change) Classes from these packages (e.g.
mukey.wcs()
andISSR800.wcs()
bug fix for some instances where the target extent was miscalculated, resulting in slight differences from requested resolution (res
argument) of result.mukey.wcs()
gains a new possible data sourcedb="RSS"
which accesses a Web Coverage Service containing grids from Raster Soil Surveys in the United States.- See: #229 for more details on what has changed.
- Dropped imports from
- NASIS
- (breaking change)
rmHzErrors
argument now defaults toFALSE
. Please let us know if allowing horizon errors results in unexpected behavior so we can repair various interfaces that rely on no errors being present. Seeaqp::checkHzDepthLogic()
for more information on the types of things that used to result in profiles being removed from results and for guidelines on how to fix. - Added several new columns from the
plotplantinventory
table toget_vegplot_species_from_NASIS_db()
result; thanks to Zachary Van Abbema for suggestion and feedback - Local NASIS metadata used for
uncode()
are now cached within an R session which results in faster query processing times for users with a local NASIS database connection set up.- The
db
argument touncode()
has been deprecated. Now,code()
anduncode()
can useChoiceName
and/orChoiceLabel
in coding and decodingChoiceValue
for all data sources.
- The
- Rock fragment and artifact sieving now uses <76mm as the upper boundary for gravel fraction, and a related QC message has been removed
- (breaking change)
- SSURGO / Soil Data Access
- Added
get_SDA_cosurfmorph()
: a new function in "SSURGO On Demand" style. Users can customize the WHERE clause, target tables and the grouping variable used to calculate proportions (defaultby="compname"
)- "cosurfmorphgc" summarizes "geomposmntn", "geomposhill", "geomposflats", "geompostrce"
- "cosurfmorphhpp" summarizes "hillslopeprof"
- "cosurfmorphss" summarizes "shapeacross", "shapedown", and concatenated "surfaceshape"
- Several fixes for logic of
get_SDA_property()
withmethod="weighted average"
andinclude_minors=TRUE
/miscellaneous_areas=TRUE
, thanks to Andy Paolucci and Dylan Beaudette for testing and providing feedback on the queries. - All
get_SDA_*()
methods (exceptget_SDA_metrics()
) now support input of customWHERE
clause in lieu ofmukeys
/areasymbols
arguments and gain adsn
argument for specifying a local SQLite database or DBIConnection. - Added
downloadSSURGO()
for downloading/extraction of the SSURGO data by survey area from Web Soil Survey. - Added
createSSURGO()
for building of local databases as SQLite/Geopackage from one or more SSURGO exports.- Exports can be obtained via
downloadSSURGO()
, from NASIS or downloaded from other sources such as https://datagateway.nrcs.usda.gov/GDGHome_DirectDownLoad.aspx.
- Exports can be obtained via
- Added
What's Changed
- Use terra/sf to replace raster/sp/rgdal by @brownag in #229
- Add
get_SDA_cosurfmorph()
by @brownag in #245 - downloadSSURGO & createSSURGO: download WSS ZIP archives by soil survey area and create local databases (SQLite/SpatiaLite/Geopackage) by @brownag in #244
- Add get_SSURGO_utils.R by @brownag in #247
get_SDA_*()
: Local SDA-style queries by @brownag in #246
Full Changelog: 2.6.15...2.7.0