R/downloading_tools.R
download_wbd.RdThis function downloads and decompresses staged seamless WBD data. Please see: https://prd-tnm.s3.amazonaws.com/StagedProducts/Hydrography/WBD/National/GDB/WBD_National_GDB.xml for metadata.
The national archive is roughly 3 GB, so this function has no example. The "hydrogeofetch Data Access Overview" article works through a download in its Watershed Boundary Dataset section.
download_wbd(
outdir,
url = paste0("https://prd-tnm.s3.amazonaws.com/StagedProducts/",
"Hydrography/WBD/National/GDB/WBD_National_GDB.zip"),
progress = TRUE
)character path to the local geodatabase