WGS84UTM_TO_HK80GEO: Convert WGS84UTM coordinates to HK80GEO coordinates

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

View source: R/WGS84UTM_TO_HK80GEO.R

Description

Convert WGS84UTM coordinates to HK80GEO coordinates

Usage

1
WGS84UTM_TO_HK80GEO(N, E, zone)

Arguments

N

Numeric, The northern coordinate

E

Numeric, The eastern coordinate

zone

zone, numeric, either 49 or 50

Details

This function converts the coordinates first to WGS84GEO and then to HK80GEO.

Value

latitude

latitude in decimal degrees

longitude

longitude in decimal degrees

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

HK80GEO_TO_WGS84UTM

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
options(digits = 15)
WGS84UTM_TO_HK80GEO(2471279, 205494, zone = 50)

#### $latitude
#### [1] 22.323667977877
#### 
#### $longitude
#### [1] 114.138738570444

#### Results from http://www.geodetic.gov.hk/smo/tform/tform.aspx
#### 22.323701767
#### 114.138734989

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