aoi_convert: Convert AOI

View source: R/aoi_processing.R

aoi_convertR Documentation

Convert AOI

Description

Converts an AOI from a variety of possible input types to an 'sf' style bbox.

Usage

aoi_convert(aoi = NULL)

## S3 method for class 'numeric'
aoi_convert(aoi = NULL)

## S3 method for class 'Raster'
aoi_convert(aoi = NULL)

## S3 method for class 'Extent'
aoi_convert(aoi = NULL)

## S3 method for class 'sf'
aoi_convert(aoi = NULL)

## S3 method for class 'sfc'
aoi_convert(aoi = NULL)

## S3 method for class 'sfg'
aoi_convert(aoi = NULL)

## S3 method for class 's2_geography'
aoi_convert(aoi = NULL)

Arguments

aoi

Numeric vector of bounding coordinates in xmin, ymin, xmax, ymax order; or an 'sf' or 'raster' object from which they can be derived.

Value

'sf' bbox object with same crs as input.


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