Learn R Programming

slga (version 1.1.1)

get_lscape_data: Get SLGA landscape data

Description

Downloads SLGA gridded landscape data in raster format from public WCS services.

Usage

get_lscape_data(product = NULL, aoi = NULL, write_out = FALSE, filedir)

Arguments

product

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

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.

write_out

Boolean, whether to write the retrieved dataset to the working directory as a GeoTiff. Defaults to FALSE.

filedir

directory in which to write files if write_out == TRUE.

Value

Raster dataset for a single landscape product.

Examples

Run this code
# NOT RUN {
# get slope data for central Brisbane
aoi <- c(152.95, -27.55, 153.07, -27.45)
bne_slope <- get_lscape_data(product = 'SLPPC', aoi = aoi, write_out = FALSE)

# get slope, aspect and relief class data for central Brisbane
bne_SAR <- lapply(c('SLPPC', 'ASPCT', 'RELCL'), function(t) {
  get_lscape_data(product = t, aoi = aoi, write_out = FALSE)
})
# }

Run the code above in your browser using DataLab