Uses spatial comparison to determine which HUC polygons the locations fall into and returns the HUC names for those polygons.
If allData = TRUE
, additional data is returned.
getHUCName(
longitude,
latitude,
dataset = NULL,
HUCs = NULL,
allData = FALSE,
useBuffering = FALSE
)
Vector of HUC names.
Vector of longitudes in decimal degrees East.
Vector of latitudes in decimal degrees North.
Name of spatial dataset to use.
Vector of Hydrologic Unit Codes.
Logical specifying whether a full dataframe should be returned
Logical flag specifying the use of location buffering to find the nearest polygon if not target polygon is found.
getSpatialData