Learn R Programming

slga (version 1.2.0)

aoi_convert: 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 numeric aoi_convert(aoi = NULL)

# S3 method for Raster aoi_convert(aoi = NULL)

# S3 method for Extent aoi_convert(aoi = NULL)

# S3 method for sf aoi_convert(aoi = NULL)

# S3 method for sfc aoi_convert(aoi = NULL)

# S3 method for sfg aoi_convert(aoi = NULL)

# S3 method for 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.