lonlat2UTM | R Documentation |
Functions to convert coordinates.
lonlat2UTM(lon, lat = NULL, details = FALSE)
UTM2lonlat(X, zone, hemisphere)
getUTMzone(lon, lat = NULL)
getUTMzone2(lon)
getUTMhemisphere(lat)
lon , lat |
coordinates given as two vectors or as a matrix (or a data frame). |
details |
a logical value indicating whether to return information on the UTM zones (see below). |
X |
a matrix or a data frame giving the UTM coordinates. |
zone , hemisphere |
an integer and a character string giving the UTM square |
lonlat2UTM
works for all UTM zones. If the coordinates cover
several UTM zones and/or hemispheres, a warning is issued and the the
options details
is switched to TRUE
.
getUTMzone
returns the UTM zone for all cases, including the
special zones for Svalbard and Norway (latitude between 72 and 84
degrees North and longitude between 0 and 9 degrees East, and all
latitudes for longitudes between 9 and 42 degrees East).
getUTMzone2
is a faster version that works only outside
these special zones.
the returned value depends on the function.
Emmanuel Paradis
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.