get_watershed_layer {wdnr.gis} | R Documentation |
Retrieve a watershed polygon
Description
This function will retrieve a watershed boundary from WDNR's ArcGIS Rest Services. A subbasin (HUC8), watershed (HUC 10), or subwatershed (HUC 12) can be retrieved by passing the HUC code or name as a character string. See watershed_lookup for a full list of HUC codes and names. Use filter_huc() to see watersheds by county or classification level.
Usage
get_watershed_layer(
watershed_code = NULL,
watershed_name = NULL,
county = NULL,
sf_object = NULL,
huc_level = NULL,
where = NULL,
...
)
Arguments
watershed_code |
A character object specifying the HUC code for a watershed |
watershed_name |
A character object specifying the HUC name for a watershed |
county |
A character object specifying a county name |
sf_object |
Any sf polygon object |
huc_level |
"HUC_8","HUC_10", or "HUC_12" |
where |
SQL statement |
... |
Additional parameters that are passed to
|
Details
A function to retrieve a watershed boundary from WDNR's subbasin (HUC8), watershed (HUC 10), or subwatershed (HUC 12) spatial layers. Use 'watershed_lookup' to see a full list of available HUC codes and names.
Value
A sf polygon object
Examples
## Not run:
get_watershed_layer(watershed_code = "07070006")
get_watershed_layer(watershed_name = "Kickapoo")
get_watershed_layer(county = "forest",huc_level = "HUC_12")
## End(Not run)