This function creates a bounding box polygon based on the given minimum and maximum coordinates.
Usage
create_bbox(xmin, xmax, ymin, ymax, crs)
Arguments
- xmin
Minimum x-coordinate (longitude).
- xmax
Maximum x-coordinate (longitude).
- ymin
Minimum y-coordinate (latitude).
- ymax
Maximum y-coordinate (latitude).
- crs
Coordinate Reference System (CRS) to be assigned to the bounding box.
Value
An `sfc` object representing the bounding box polygon.