Learn R Programming

GeodesiCL (version 1.0.0)

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

Value

a list with a data.frame and leaflet map.

References

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

See Also

data.frame

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab