
Create a Single Bounding Box from MGRS Data in a Projected CRS
Source:R/mgrs_to_latlong_bbox.R
mgrs_to_latlong_bbox.RdConverts MGRS coordinates to a single sf bounding box in a suitable projected CRS, handling data that spans multiple UTM zones.
Value
An sf bounding box (sf::st_bbox) in a single projected CRS (e.g.,
Albers).
Examples
if (FALSE) { # \dontrun{
df <- data.frame(
cellCode = c("32UUC", "32UUD"),
xcoord = c(500000, 501000),
ycoord = c(5600000, 5601000)
)
bbox <- mgrs_to_latlong_bbox(df)
} # }