get_lscape_data: Get SLGA landscape data

Description Usage Arguments Value Note Examples

View source: R/get_data.R

Description

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

Usage

1
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.

Note

Examples

1
2
3
4
5
6
7
8
# 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)
})

slga documentation built on June 12, 2021, 9:07 a.m.