powered by
Link geopoints to flowlines in the NHD
link_to_flowlines(lats, lons, ids, buffer = 100, dataset = c("nhdh", "nhdplusv2"))
Vector of point latitudes
Vector of point longitudes
Vector of point identifiers (string or numeric)
numeric maximum line snapping distance in meters
Character name of dataset to link against. Can be either "nhdh" or "nhdplusv2"
flowline permanent ids
# 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