Computes the centroid of a polygon and returns its coordinates as a numeric
vector. The attribute-geometry relationship is set to "constant" to
suppress sf::st_centroid() warnings.
calc_centroid(poly)A numeric vector of centroid coordinates (x, y).
Other spatial helpers:
create_bbox(),
extract_coords(),
prep_agg_lonlat_raster(),
save_gpkg(),
spatial_join_intersects()