WGS84GEO_TO_WGS84UTM {HK80} | R Documentation |
Convert WGS84GEO coordinates to WGS84UTM coordinates
Description
Convert WGS84GEO coordinates to WGS84UTM coordinates
Usage
WGS84GEO_TO_WGS84UTM(latitude, longitude)
Arguments
latitude |
Latitude in decimal degrees |
longitude |
longitude in decimal degrees |
Details
This function uses equation 1, 2, 3 in the explanatory notes to compute the WGS84UTM coordinates.
Value
N |
The northern coordinates in meters |
E |
The eastern coordinates in meters |
zone |
zone for UTM, either 49 or 50 |
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
Examples
options(digits = 15)
WGS84GEO_TO_WGS84UTM(22 + 26/60 + 1.26/3600, 114 + 10/60 + 29.31/3600)
#### 22.433683333333334531
#### 114.17480833333333123
#### $N
#### [1] 2483566.19687669
####
#### $E
#### [1] 209189.467417282
####
#### $zone
#### [1] 50
### Answer from the explanatory notes
### 2483566m N
### 209194m
### Answer from
### http://www.geodetic.gov.hk/smo/tform/tform.aspx
### 2483568m N
### 209192m E
[Package HK80 version 0.0.2 Index]