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
Release history Release notifications | RSS feed
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)