Creates the bounding box (numeric vector of length four) around the input point(s).
Arguments
- x
an
sf
,sfc
, orSpatialPoints*
object, a numeric indicating the longitude/easting of the point(s), or any input accepted byxy.coords
- y
numeric, the latitude/northing of the point(s). Default: NULL
- size
numeric indicating the size (in meters) of the bounding box to create
- crs
coordinate reference system of the input (and the output): object of class
crs
, or input string forst_crs
. Default: 4326 (WGS 84)
Value
A bounding box (numeric vector of length four), or a list of bounding boxes if the input is not scalar.