get_wis_rasters: General function to pull Raster layers from a MapServer or...

get_wis_rastersR Documentation

General function to pull Raster layers from a MapServer or ImageServer

Description

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

Usage

get_wis_rasters(
  service,
  get_raster_function,
  county = NULL,
  watershed_code = NULL,
  watershed_name = NULL,
  sf_object = NULL,
  ...
)

Arguments

service

Text string describing which service to pull. Will get matched by match_services(service).

get_raster_function

The arcpullr function to use: either get_map_layer or get_image_layer

county

A character object specifying a county name

watershed_code

A character object specifying the HUC code for a watershed

watershed_name

A character object specifying the HUC name for a watershed

sf_object

Any sf polygon object

...

Additional arguments to pass to the get_raster_function

Value

A Raster* object dependent on get_raster_function


wdnr.gis documentation built on Oct. 26, 2023, 1:08 a.m.