This is a non-exported function that is used as the engine for
get_wis_landcover
and get_wis_imagery
. It
converts watersheds, counties, etc. to the appropriate sf_object and
queries the desired service using the function specified in
get_raster_function
get_wis_rasters(
service,
get_raster_function,
county = NULL,
watershed_code = NULL,
watershed_name = NULL,
sf_object = NULL,
...
)
A Raster* object dependent on get_raster_function
Text string describing which service to pull. Will get matched
by match_services(service)
.
The arcpullr
function to use: either
get_map_layer
or
get_image_layer
A character object specifying a county name
A character object specifying the HUC code for a watershed
A character object specifying the HUC name for a watershed
Any sf polygon object
Additional arguments to pass to the get_raster_function