link_to_flowlines: Link geopoints to flowlines

Description Usage Arguments Value Examples

View source: R/link_to_flowlines.R

Description

Link geopoints to flowlines in the NHD

Usage

1
2
link_to_flowlines(lats, lons, ids, buffer = 100, dataset = c("nhdh",
  "nhdplusv2"))

Arguments

lats

Vector of point latitudes

lons

Vector of point longitudes

ids

Vector of point identifiers (string or numeric)

buffer

numeric maximum line snapping distance in meters

dataset

Character name of dataset to link against. Can be either "nhdh" or "nhdplusv2"

Value

flowline permanent ids

Examples

1
2
3
4
5
6
7
8
## Not run: 
latlon = c(42.703290, -73.702855)

#should link to hudson river
link_to_flowlines(latlon[1], latlon[2], 'dummyid')


## End(Not run)

hydrolinks documentation built on May 1, 2019, 8:08 p.m.