UTMtoLongLat: To convert from UTM to Geographic coordinate.

Description Usage Arguments Value Note References See Also Examples

View source: R/UTMtoLongLat.R

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

1
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.

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

 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)

GeodesiCL documentation built on May 25, 2021, 5:10 p.m.