soilDB 2.8.7 (2025-01-16)
- Several aliases of NASIS physical column names have been deprecated and will be removed in the next minor release (2.9.x). See https://ncss-tech.github.io/AQP/soilDB/bulletins/2025.01-1-soilDB-NASIS-column-aliases.html for details (#369)
fetchVegdata()
- Added
"ecostateid"
,"ecostatename"
,"commphaseid"
,"commphasename
" to columns fromsite
andsiteobs
joined into"vegplot"
result. - Fixed
"site"
join used for"vegplot"
table result. Now using LEFT join to addsiteecositehistory
information - Sites without vegetation plots are now excluded from the result
- Added
get_vegplot_trhi_from_NASIS_db()
&get_vegplot_transect_from_NASIS_db()
no longer join to thepedon
table. Use the"siteobsiid"
or vegetation plot"assocuserpedonid"
to join to pedon records when necessary.- This change avoids issues with unintended duplication of records e.g. lab pedons that have multiple pedons per site observation. Thanks to Nathan Roe for suggestion.
get_vegplot_*()
functions use INNER join tovegtransect
table where applicable, so records are only returned for vegplots with an associated transect. Thanks to Zach Van Abbema for suggestion.createSSURGO()
: more informative error message when no export files found for import- Improved soilDBdata data sets used for unit tests of
fetchNASIS()
andfetchVegdata()
when a local NASIS instance is not available - Updated NASIS SoilProfileCollection data sets (
loafercreek
,gopheridge
,mineralKing
)
soilDB 2.8.6 (2024-12-23)
fetchNASIS()
andget_site_data_from_NASIS_db()
now return Ecological Site State and Community Phase information (ecostatename, ecostateid, commphasename, commphaseid columns) from Site Observation tablecreateStaticNASIS()
bug fixes- Removed workaround for {odbc}/nanoodbc VARCHAR(MAX) columns; now can directly use
DBI::dbReadTable()
for all tables via NASIS ODBC connection - Fixed error when
output_path=NULL
- Removed workaround for {odbc}/nanoodbc VARCHAR(MAX) columns; now can directly use
fetchNASIS()
changed default behavior tomixColors=FALSE
which returns dominant condition for each moisture state rather than mixing LAB color coordinatesget_colors_from_NASIS_db()
deprecatemixColors
argument, addmethod
argument with options "dominant", "mixed", and "none". New aggregation method"none"
returns long format representation of color data from phcolor table with no aggregation applied.
createSSURGO()
updates:- Added incremental write of tabular data by table and soil survey area, which is much more memory efficient
- Added
maxruledepth
argument to allow filtering ofcointerp
table, and set default to0
.- This reduces number of
cointerp
rows by about 75% for published SSURGO. Generally, Web Soil Survey exports have maximum rule depth of1
, but custom NASIS exports can be "deeper"
- This reduces number of
- Updated behavior of
filename
argument whenconn
DBIConnection is specified and improvedoverwrite
logic - Added
dissolve_field
to facilitate creating aggregate geometries by"mukey"
or other spatial attribute - Added
include_tabular
argument to support omitting tabular data when building a database - Now
include_spatial
andinclude_tabular
are allowed to be a character vectors of table namesTRUE
is all tables,FALSE
is no tables. This allows for subsets of the SSURGO data model to be specified with finer user control over database contents.
- Now a composite
"soil_metadata"
table is made with"areasymbol"
column and one row per soil survey area, rather than one table per soil survey area. This is more compact and scales better to larger databases.
What's Changed
- fetchVegdata: add siteobsiid to vegplot tables; activate vegbasalarea table by @natearoe in #366
- get_NASIS_table_name_by_purpose: Add basal area tables by @natearoe in #367
createSSURGO()
updates by @brownag in #370- Deprecate NASIS column name aliases by @brownag in #369
New Contributors
Full Changelog: 2.8.5...2.8.7