discover_nhdplus_id: Discover NHDPlus ID

Description Usage Arguments Value Examples

View source: R/geoserver_tools.R

Description

Multipurpose function to find a COMID of interest.

Usage

1
discover_nhdplus_id(point = NULL, nldi_feature = NULL)

Arguments

point

An sf POINT including crs as created by: sf::st_sfc(sf::st_point(..,..), crs)

nldi_feature

list with names 'featureSource' and 'featureID' where 'featureSource' is derived from the "source" column of the response of get_nldi_sources and the 'featureSource' is a known identifier from the specified 'featureSource'.

Value

integer COMID

Examples

1
2
3
4
5
point <- sf::st_sfc(sf::st_point(c(-76.87479, 39.48233)), crs = 4326)
discover_nhdplus_id(point)

nldi_nwis <- list(featureSource = "nwissite", featureID = "USGS-08279500")
discover_nhdplus_id(nldi_feature = nldi_nwis)

nhdplusTools documentation built on Aug. 18, 2021, 5:07 p.m.