This function creates a rectangle of specified width and height, centered on a given point.
Arguments
- center
A numeric vector of length 2 specifying the x and y coordinates of the center of the rectangle (e.g., c(x, y)).
- xsize
Numeric, the total width of the rectangle (in the same units as the coordinate reference system, typically meters).
- ysize
Numeric, the total height of the rectangle (in the same units as the coordinate reference system, typically meters).
- crs
Numeric, the coordinate reference system (CRS) of the output geometry. Default is EPSG:2193 (NZTM2000).