Skip to main content

Python port of TKY2JGD to transform coordinates from Tokyo Datum (EPSG:4301) to JGD2000 (EPSG:4612)

Project description

TKY2JGD

国土地理院のTKY2JGDをPythonに移植したものです。

オリジナルのTKY2JGDはhttp://vldb.gsi.go.jp/sokuchi/tky2jgd/download/down.cgiからダウンロードできます。

座標変換パラメータファイルdata/TKY2JGD.parはv2.1.1を使用しています。

Usage

$ python3 tky2jgd.py 36.103774791666666 140.08785504166664
36.10696628160147 140.08457686629436
>>> import tky2jgd
>>> tky2jgd.load_parameter("data/TKY2JGD.par")
>>> lat, lon = 36.103774791666666, 140.08785504166664
>>> dB, dL = tky2jgd.bilinear(lat, lon)
>>> lat += dB / 3600
>>> lon += dL / 3600
>>> print(lat, lon)
36.10696628160147 140.08457686629436

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

tky2jgd-0.1.0.tar.gz (3.4 MB view hashes)

Uploaded Source

Built Distribution

tky2jgd-0.1.0-py3-none-any.whl (5.6 kB view hashes)

Uploaded Python 3

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