Create a rectangular spatial extent for the analysis

create_extent(bounds, input_crs = 4326, output_crs = input_crs)

Arguments

bounds

Coordinates marking the boundaries of the extent, as an ordered vector in the form c(xmin, ymin, xmax, ymax).

input_crs

Coordinate reference system in which the coordinate values of bounds are expressed. Can be anything understood by sf::st_crs(). By default equal to 4326, i.e. longitude and latitude coordinates with WGS84 as geodetic datum.

output_crs

Coordinate reference system to create the extent in. Can be anything understood by sf::st_crs(). By default equal to input_crs.

Value

The rectangular extent as a single POLYGON geometry in an object of class sfc.