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 details)
Built Distribution
File details
Details for the file tky2jgd-0.1.0.tar.gz
.
File metadata
- Download URL: tky2jgd-0.1.0.tar.gz
- Upload date:
- Size: 3.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.7 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1ea5bf030e10722c33e8f4b98b243b5e86de5b42489918de0a2e9a82332609b5
|
|
MD5 |
32880cb9ed7c3c09b4a6fcd1bd1d3731
|
|
BLAKE2b-256 |
77b17bf334cc77c4d92194450bdbc5f546c7d6ab621f9084fa2d5a0e37ebb0ac
|
File details
Details for the file tky2jgd-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: tky2jgd-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.9.7 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
cc616e2c714aa54fe0967faf944a2e5492769e708d4c828ead7cc7ef5f1c4473
|
|
MD5 |
655b1de74004713cc7ea32ab7ef90f10
|
|
BLAKE2b-256 |
4af9fd431d7814af42b413ba8e996740b8c593cf523bfb7651d4e6b03565cbde
|