@@ -45,6 +45,7 @@ get_site_data_from_NASIS_db <- function(SS = TRUE,
45
45
.soilDB_warn_deprecated_aliases(
46
46
c(
47
47
" upedonid" = " pedon_id" ,
48
+ " obs_date" = " obsdate" ,
48
49
" longstddecimaldegrees" = " x_std" ,
49
50
" latstddecimaldegrees" = " y_std" ,
50
51
" descname" = " describer" ,
@@ -61,9 +62,9 @@ get_site_data_from_NASIS_db <- function(SS = TRUE,
61
62
NASISDomainsAsFactor(stringsAsFactors )
62
63
}
63
64
64
- q <- paste0(" SELECT siteiid, siteobsiid, usiteid,
65
+ q <- paste0(" SELECT siteiid, siteobsiid, usiteid, usiteid AS site_id,
65
66
" , ifelse(include_pedon , " peiid, CAST(upedonid AS varchar(60)) as pedon_id, upedonid, " , " " ), "
66
- obsdate, utmzone, utmeasting, utmnorthing, horizdatnm,
67
+ obsdate, obsdate AS obs_date, utmzone, utmeasting, utmnorthing, horizdatnm,
67
68
longstddecimaldegrees, latstddecimaldegrees, gpspositionalerror,
68
69
" , ifelse(include_pedon , " descname AS describer, descname, pedonpurpose, pedontype, pedlabsampnum, labdatadescflag,
69
70
tsectstopnum, tsectinterval, utransectid, tsectkind, tsectselmeth, erocl," , " " ), "
0 commit comments