Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for hk80, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size hk80-1.0.1-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hk80-1.0.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page