
Create a Longitude/Latitude Bounding Box from MGRS Data
Source:R/mgrs_to_latlong_bbox.R
mgrs_to_latlong_bbox.RdConverts UTM coordinates of MGRS cells, which may span several UTM zones, to WGS 84 and returns their combined bounding box.
Value
An sf::st_bbox() object in EPSG:4326 (longitude/latitude).
Examples
# \donttest{
df <- data.frame(
cellCode = c("32UUC", "32UUD"),
xcoord = c(500000, 501000),
ycoord = c(5600000, 5601000)
)
bbox <- mgrs_to_latlong_bbox(df)
# }