Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/WGS84UTM_TO_WGS84GEO.R
Covert WGS84UTM coordinates to WGS84GEO coordinates
1 | WGS84UTM_TO_WGS84GEO(N, E, zone = c(49, 50))
|
N |
Numerical, the northern coordinates, in meters. |
E |
Numerical, the eastern coordinates, in meters. |
zone |
UTM zone, should be either 49 or 50. |
Using Equation 3,4,5 and iterations to compute the values.
latitude |
latitude based on WGS84 datum. In decimal degrees |
longitude |
longitude based on WGS84 datum. In decimal degrees |
The coordinates should be within the range of Hong Kong. Providing coordinates outside Hong Kong will lead to wrong results.
Jinlong Zhang
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
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.