get_nldi_index: Get NLDI Index

View source: R/get_nldi.R

get_nldi_indexR Documentation

Get NLDI Index

Description

uses the Network Linked Data Index to retrieve and estimated network location for the given point. If not within a grid cell of a flowline, will use a raindrop trace service to find the nearest downslope flowline location.

Usage

get_nldi_index(location)

Arguments

location

numeric WGS84 lon/lat pair (X, Y)

Examples


index <- get_nldi_index(c(-89.276, 42.988))

if(inherits(index, "sf")) {

plot_nhdplus(bbox = sf::st_bbox(sf::st_buffer(index[1,], units::set_units(1000, "m"))))
plot(sf::st_geometry(sf::st_transform(index, 3857)), add = TRUE)

}


nhdplusTools documentation built on June 22, 2024, 10:36 a.m.