Description Usage Arguments Value Note References See Also Examples
With this function it is possible to convert from UTM coordinate to Geographic coordinate. It is also possible to convert to other coordinate reference systems by selecting their EPGS number. Review notes and references.
1 | UTMtoLongLat(utm_df, zone, hemisphere = "south", crs = 4326, digits = 4)
|
utm_df |
Point name, East and North UTM in a data.frame. |
zone |
Select UTM zone to work. |
hemisphere |
select between north or south (written in lowercase). DEFAULT: "south" |
crs |
EPGS number of the new coordinate reference system to transform. DEFAULT: 4326 (WGS84) |
digits |
Number of digits the seconds are |
a list with a data.frame and leaflet map.
create data frame of epsg codes by epsg <- rgdal::make_EPSG()
https://github.com/OSGeo/PROJ & https://github.com/cran/rgdal
1 2 3 4 5 6 7 8 9 10 11 12 | # Load test data from the package
csv <- system.file("extdata", "test.csv", package = "GeodesiCL")
data_test <- read_data(csv)
# Zone
zone <- 19
# Hemisphere could be "north" or "south"
hemisphere <- "south"
value <- UTMtoLongLat(data_test, zone, hemisphere = "south", crs = 4326, digits = 4)
print(value)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.