Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/HK80UTM_TO_HK80GEO.R
Convert the HK80UTM coordinates to HK80GEO coordinates
1 | HK80UTM_TO_HK80GEO(N, E, zone = c(49, 50))
|
N |
Numeric, Northern coordinate in meters. |
E |
Numeric, Eastern coordinate in meters. |
zone |
zone, UTM zone, either 49 or 50 for Hong Kong. |
This function uses equation 3, 4, 5 in the explanatory notes to convert the HK80UTM coordinates into HK80GEO coordinates (latitude and longitude) in decimal degrees. Mode details could be found at: Page C9 and C10 on the explanatory notes.
latitude |
latitude in decimal degrees |
longitude |
longitude 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 | options(digits = 15)
HK80UTM_TO_HK80GEO(2483775, 208930, zone = 50)
#### $latitude
#### [1] 22.435188997523
####
#### $longitude
#### [1] 114.172349350774
##### Answer from the explanatory note:
### 22 + 26/60 + 06.89/3600 = 22.43524722
### 114 + 10/60 + 20.39/3600 = 114.1723306
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.