Get NLDI Basin Boundary
Get a basin boundary for a given NLDI feature.
get_nldi_basin(nldi_feature)
nldi_feature |
list with names 'featureSource' and 'featureID' where 'featureSource' is derived from the "source" column of the response of dataRetrieval::get_nldi_sources() and the 'featureSource' is a known identifier from the specified 'featureSource'. |
Only resolves to the nearest NHDPlus catchment divide. See: https://waterdata.usgs.gov/blog/nldi-intro/ for more info on the nldi.
sf data.frame with result basin boundary
library(sf) library(dplyr) nldi_nwis <- list(featureSource = "nwissite", featureID = "USGS-05428500") basin <- get_nldi_basin(nldi_feature = nldi_nwis) basin %>% st_geometry() %>% plot() basin
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.