Learn R Programming

hydrolinks (version 0.10.0)

link_to_flowlines: Link geopoints to flowlines

Description

Link geopoints to flowlines in the NHD

Usage

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

Run this code
# NOT RUN {
latlon = c(42.703290, -73.702855)

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

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab