UTMtoLongLat: To convert from UTM to Geographic coordinate.

View source: R/UTMtoLongLat.R

UTMtoLongLatR Documentation

To convert from UTM to Geographic coordinate.

Description

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.

Usage

UTMtoLongLat(utm_df, zone, hemisphere = "south", crs = 4326, digits = 4)

Arguments

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 are rounded to. DEFAULT: 4

Value

a list with a data.frame and leaflet map.

Note

create data frame of epsg codes by epsg <- rgdal::make_EPSG()

References

https://github.com/OSGeo/PROJ & https://github.com/cran/rgdal

See Also

data.frame

Examples


# 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)


diegoalarc/GeodesiCL documentation built on July 24, 2022, 9:14 p.m.