Skip to contents

This function returns the rasterFunctionInfos field of the ImageServer's metadata as a data.frame. If the field does not exist then an error is emitted.

Usage

list_service_raster_fns(
  x,
  arg = rlang::caller_arg(x),
  call = rlang::caller_call()
)

Arguments

x

an ImageServer.

arg

An argument name in the current function.

call

The execution environment of a currently running function, e.g. call = caller_env(). The corresponding function call is retrieved and mentioned in error messages as the source of the error.

You only need to supply call when throwing a condition from a helper function which wouldn't be relevant to mention in the message.

Can also be NULL or a defused function call to respectively not display any call or hard-code a code to display.

For more information about error calls, see Including function calls in error messages.

Value

a data.frame of the available raster functions.

Examples

# use paste to avoid cran note
furl <- paste0(
  "https://di-usfsdata.img.arcgis.com/arcgis/rest/services",
  "/FIA_BIGMAP_2018_Species_Aboveground_Biomass/ImageServer"
)

service <- arc_open(furl)
raster_fns <- list_service_raster_fns(service)
head(raster_fns)
#> # A data frame: 6 × 3
#>   name                     description                                     help 
#> * <chr>                    <chr>                                           <chr>
#> 1 SPCD_0000_TOTAL          TOTAL                                           ""   
#> 2 None                     Make a Raster or Raster Dataset into a Functio… ""   
#> 3 SPCD_0010_Abies_spp.     fir spp.                                        ""   
#> 4 SPCD_0011_Abies_amabilis Pacific silver fir                              ""   
#> 5 SPCD_0012_Abies_balsamea balsam fir                                      ""   
#> 6 SPCD_0015_Abies_concolor white fir                                       ""