Skip to content

nonjosh/HkCrsTransformer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

HkCrsTransformer

This repository contains the python code for simple conversion between HK1980 and WGS84

HK1980 又名 EPSG 2326, 而 WGS84 (通用 GPS 坐標) 又名 EPSG 4326

Dependencies

install dependency pyproj with conda install or pip install

# conda install pyproj
pip install pyproj

Examples

import CrsTransformer as ct

print(ct.GPS2HK(114.00030255843123,22.485771225062955))
# (818097.5296817721, 838477.9470580409)

print(ct.HK2GPS(838477.970,818097.267))
# (114.19832156976544, 22.301818498702563)

or

from CrsTransformer import GPS2HK, HK2GPS

print(GPS2HK(114.00030255843123,22.485771225062955))
# (818097.5296817721, 838477.9470580409)

print(HK2GPS(838477.970,818097.267))
# (114.19832156976544, 22.301818498702563)

References

https://blog.tiger-workshop.com/hk1980-grid-to-wgs84/

About

simple conversion between HK1980 and WGS84

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages