polygon_bounding_box: Create a spatial polygon bounding box sf object

View source: R/analysis.R

polygon_bounding_boxR Documentation

Create a spatial polygon bounding box sf object

Description

Creates a spatial polygon bounding box from a user-provided extent and coordinate reference system.

Usage

polygon_bounding_box(x_min, x_max, y_min, y_max, my_crs)

Arguments

x_min

A float or integer value for the x (longitude) coordinate minimum

x_max

A float or integer value for the x (longitude) coordinate maximum

y_min

A float or integer value for the y (latitude) coordinate minimum

y_max

A float or integer value for the y (latitude) coordinate maximum

my_crs

An integer for the EPSG number of the desired output coordinate reference system.

Value

A bounding box polygon as an sf object

Author(s)

Chris R. Vernon (chris.vernon@pnnl.gov)


JGCRI/rgis documentation built on July 27, 2023, 1:47 p.m.