Skip to contents

Download, cache and import the Australian Agricultural and Grazing Industries Survey (AAGIS regions geospatial shapefile. Upon import, the geometries are automatically corrected to fix invalid geometries that are present in the original shapefile.

Usage

read_aagis_regions(cache = TRUE)

Arguments

cache

Cache the AAGIS regions' geospatial file after downloading using tools::R_user_dir("read.abares", "cache") to identify the proper directory for storing user data in a cache for this package. Defaults to TRUE, caching the files locally as a Geopackage. If FALSE, this function uses tempdir() and the files are deleted upon closing of the active R session.

Value

An sf object of the AAGIS regions.

Examples

if (FALSE) { # interactive()
aagis <- read_aagis_regions()

plot(aagis)
}