Skip to main content

Hong Kong 1980 Grid coordinates conversion library in Python

Project description

HK80

Hong Kong 1980 Grid coordinates conversion library in Python. This library provides a simple API for coordinates conversion between Hong Kong 1980 Grid and WGS 84. Underlying conversions are performed using pyproj.

Installation

pip install hk80

Usage

>>> from hk80 import LatLon, HK80
>>> hku = LatLon(22.284034, 114.137814).to_hk80()
>>> (hku.northing, hku.easting)
(816128.2739028323, 832242.6232703187)
>> (hku.x, hku.y)
(832242.6232703187, 816128.2739028323)
>>> hku = HK80(northing=816128, easting=832243).to_wgs84()
>>> (hku.latitude, hku.longitude)
(22.284031525857237, 114.13781766034742)

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

hk80-1.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

hk80-1.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file hk80-1.0.1.tar.gz.

File metadata

  • Download URL: hk80-1.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for hk80-1.0.1.tar.gz
Algorithm Hash digest
SHA256 22cb90992c14e2f068516f57147df5c7c36ee1c87ec582b2b35f4b6758d3c45c
MD5 ce0e8c415565390fe917de8b673940fa
BLAKE2b-256 a30d16f038ae303d41d33faa84f42e11f72017c89fbd4ca65ee16e8774923fbc

See more details on using hashes here.

File details

Details for the file hk80-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hk80-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2

File hashes

Hashes for hk80-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4211d0ce0439b5caadf8df84e8432c3dd1d6ce1207bab1b8450d7da93d0bfe8
MD5 0c500772d39b5e5b48371502ba09681c
BLAKE2b-256 9309217d22b23be15f41ce9ba85c33184320be2296e31b601264d10f11a9436b

See more details on using hashes here.

Supported by

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