Skip to contents

Function to convert a bounding box to a polygon with correct CRS.

Usage

st_polygon_from_bbox(bbox, output_crs)

Arguments

bbox

Bounding box object or numeric c(xmin, ymin, xmax, ymax).

output_crs

desired output CRS (integer or string)

Value

sf polygon