Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/WGS84GEO_TO_WGS84UTM.R
Convert WGS84GEO coordinates to WGS84UTM coordinates
1 | WGS84GEO_TO_WGS84UTM(latitude, longitude)
|
latitude |
Latitude in decimal degrees |
longitude |
longitude in decimal degrees |
This function uses equation 1, 2, 3 in the explanatory notes to compute the WGS84UTM coordinates.
N |
The northern coordinates in meters |
E |
The eastern coordinates in meters |
zone |
zone for UTM, either 49 or 50 |
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 14 15 16 17 18 19 20 21 22 23 | 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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.