Skip to main content

A forked project from hk80. This project also convert the coordincates with pyproj, with a more update version and providing better performance

Project description

hk1980

Grid coordinates conversion library in Python between Hong Kong 1980 Grid System and World Geodetic System 1984

Installation

Use the package manager pip or poetry to install foobar.

pip install hk1980

or

poetry add hk1980

Usage

from hk1980 import LatLon, HK80

hku = LatLon(22.284034, 114.137814).to_hk80()
print(hku.northing, hku.easting) # 836303.204 818195.94
print(hku.x, hku.y) # 818195.94 836303.204

hku = HK80(northing=816128, easting=832243).to_wgs84()
print(hku.latitude, hku.longitude) # 22.42944514 113.98124272
print(hku.x, hku.y) # 113.98124272 22.42944514

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hk1980-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hk1980-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file hk1980-0.1.1.tar.gz.

File metadata

  • Download URL: hk1980-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Windows/10

File hashes

Hashes for hk1980-0.1.1.tar.gz
Algorithm Hash digest
SHA256 20ac94cfcad5a641adc5ac691db757652393d45dd622005b45f7b2a0d13be7a3
MD5 d4d6e18c4e6f6cb954be98868cfc37ba
BLAKE2b-256 5eb10a6e7bc33cc0d93bb29560d45a5c39ba32d618e96feef0fcd64fc164971e

See more details on using hashes here.

File details

Details for the file hk1980-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hk1980-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Windows/10

File hashes

Hashes for hk1980-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7e6670dc959a36958beb14a45f87527cbb72d44515546497f310507e91954ac
MD5 f642f92ac942430613f185e30ca11e1c
BLAKE2b-256 6b90b3de91e708caff59cfad321b208811be955c679b82a2b3d8c213a6bccc73

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page