Skip to contents

Get the UTM zone of a spatial object

Usage

get_utm_zone(x)

Arguments

x

Object in any class accepted by as_bbox()

Value

The EPSG code of the UTM zone

Examples

# Get EPSG code for UTM zone of Bucharest
bb <- c(xmin = 25.97, ymin = 44.33, xmax = 26.23, ymax = 44.54)
get_utm_zone(bb)
#> [1] 32635