Learn R Programming

slga (version 1.2.0)

get_soils_raster: Download single SLGA soils raster subset

Description

Retrieves SLGA gridded soil data in raster format from WCS service.

Usage

get_soils_raster(
  product = NULL,
  attribute = NULL,
  component = NULL,
  depth = NULL,
  aoi = NULL,
  skip_val = FALSE
)

Arguments

product

Character, one of the options from column 'Short_Name' in slga_product_info, where Type = 'Soil'.

attribute

Character, one of the options from column 'Code' in slga_attribute_info

component

Character, one of 'VAL', 'CLO', or 'CHI'.

depth

Integer, a number from 1 to 6.

aoi

Vector of WGS84 coordinates defining a rectangular area of interest. The vector may be specified directly in the order xmin, xmax, ymin, ymax, or the function can derive an aoi from the boundary of an `sf` or `raster` object.

skip_val

boolean, filthy hack for point data requests, prevents double validation expanding bbox size

Value

Raster dataset for a single combination of product, attribute, component, depth, and area of interest.