R/downloading_tools.R
download_nhdplusv2.Rd
This function downloads and decompresses staged seamless NHDPlusV2 data. The following requirements are needed: p7zip (MacOS), 7zip (windows) Please see: https://www.epa.gov/waterdata/get-nhdplus-national-hydrography-dataset-plus-data for more information and metadata about this data.
Default downloads lower-48 only. See examples for islands. No Alaska data are available.
download_nhdplusv2(
outdir,
url = paste0("https://dmap-data-commons-ow.s3.amazonaws.com/NHDPlusV21/",
"Data/NationalData/NHDPlusV21_NationalData_Seamless", "_Geodatabase_Lower48_07.7z"),
progress = TRUE
)
character path to the local geodatabase
if (FALSE) { # \dontrun{
download_nhdplusV2("./data/nhd/")
download_nhdplusv2(outdir = "./inst/",
url = paste0("https://dmap-data-commons-ow.s3.amazonaws.com/NHDPlusV21/",
"Data/NationalData/NHDPlusV21_NationalData_Seamless",
"_Geodatabase_HI_PR_VI_PI_03.7z"))
} # }