Learn R Programming

HK80 (version 0.0.2)

HK80GEO_TO_WGS84GEO: Convert HK80GEO coordinates to WGS84GEO coordinates

Description

Convert HK80GEO coordinates to WGS84GEO coordinates

Usage

HK80GEO_TO_WGS84GEO(latitude, longitude)

Arguments

latitude
latitude in decimal degrees
longitude
longitude in decimal degrees

Value

Details

This function utilizes the simplified relationship between HK80GEO and WGS84GEO described on Page B6 to do the transformation.

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

WGS84GEO_TO_HK80GEO

Examples

Run this code
options(digits = 15)
HK80GEO_TO_WGS84GEO(22.323701767, 114.138734989)

### $latitude
### [1] 22.3221739892222
### 
### $longitude
### [1] 114.141179433444

### Answer from the online conversion tool
### 22.322172084
### 114.141187917

Run the code above in your browser using DataLab