aoi_transform: Transform an AOI's CRS

View source: R/aoi_processing.R

aoi_transformR Documentation

Transform an AOI's CRS

Description

Transforms an 'sf' style bounding box object into the specified coordinate reference system.

Usage

aoi_transform(aoi = NULL, crs = 4283)

Arguments

aoi

Object of class 'bbox' generated by internal function aoi_convert().

crs

EPSG code of desired coordinate reference system. Default 4283.

Value

'bbox' object with the desired CRS, large enough to ensure returned dataset covers entire input object.

Note

This is a stopgap until and unless a dedicated sf method for bbox transformations is written. Currently used to coerce to WGS84 under specific circumstances. Since this helper was written for an Australia-specific package, it is assumed that it will be used to transform coordinates from a fairly limited list of known crs's, chiefly GDA94 (EPSG:4283) and its associated UTM and Albers equal area projections.


obrl-soil/slga documentation built on Feb. 3, 2024, 4:31 a.m.