WGS84UTM_TO_WGS84GEO: Covert WGS84UTM coordinates to WGS84GEO coordinates

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/WGS84UTM_TO_WGS84GEO.R

Description

Covert WGS84UTM coordinates to WGS84GEO coordinates

Usage

1
WGS84UTM_TO_WGS84GEO(N, E, zone = c(49, 50))

Arguments

N

Numerical, the northern coordinates, in meters.

E

Numerical, the eastern coordinates, in meters.

zone

UTM zone, should be either 49 or 50.

Details

Using Equation 3,4,5 and iterations to compute the values.

Value

latitude

latitude based on WGS84 datum. In decimal degrees

longitude

longitude based on WGS84 datum. In decimal degrees

Note

The coordinates should be within the range of Hong Kong. Providing coordinates outside Hong Kong will lead to wrong results.

Author(s)

Jinlong Zhang

References

Survey & Mapping Office Lands Department, Hong Kong Government (1995). Explanatory Notes on Geodetic Datums in Hong Kong, available at: http://www.geodetic.gov.hk/smo/gsi/data/pdf/explanatorynotes.pdf

See Also

WGS84GEO_TO_WGS84UTM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
options(digits = 15)
WGS84UTM_TO_WGS84GEO(2483568, 209192, zone = 50)

### $latitude
### [1] 22.4336553287886
### 
### $longitude
### [1] 114.174807232072
### 

### The answer from the explanatory notes is 
### 22 + 26/60 + 1.16/3600 = 22.433655555555557015
### 114 + 10/60 + 29.24/3600 = 114.17478888888889799

helixcn/HK80 documentation built on Aug. 13, 2021, 3:21 a.m.