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

build_polygon(xmin, xmax, ymin, ymax)

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

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