WGS84GEO_TO_WGS84UTM: Convert WGS84GEO coordinates to WGS84UTM coordinates

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

View source: R/WGS84GEO_TO_WGS84UTM.R

Description

Convert WGS84GEO coordinates to WGS84UTM coordinates

Usage

1
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

WGS84UTM_TO_WGS84GEO

Examples

 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

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