utm_zone | R Documentation |
The function determines the UTM number and south/north location
for the mid-point of x
.
utm_zone(x, crs = 4326)
x |
A numerical two-dimensional object
(a |
crs |
An object which is a crs or from which one can be derived.
|
A list with two elements:
The UTM zone number as integer value.
North/South indicator as character "N" or "S"
.
Convert Latitude/Longitude to UTM https://www.wavemetrics.com/code-snippet/convert-latitudelongitude-utm (attributed to Chuck Gantz).
locations <- matrix(
data = c(-120.325, -111.245, 39.855, 36.753),
nrow = 2
)
utm_zone(locations)
utm_zone(locations[1, ])
utm_zone(locations[2, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.