Learn R Programming

nhdplusTools (version 0.3.16)

download_wbd: Download the seamless Watershed Boundary Dataset (WBD)

Description

This 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.

Usage

download_wbd(
  outdir,
  url = paste0("https://prd-tnm.s3.amazonaws.com/StagedProducts/",
    "Hydrography/WBD/National/GDB/WBD_National_GDB.zip")
)

Arguments

outdir

The folder path where data should be downloaded and extracted

url

the location of the online resource

Value

the path to the local geodatabase

Examples

Run this code
# NOT RUN {
  download_wbd("./data/wbd/")
# }

Run the code above in your browser using DataLab