Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

任意座標を原点とした横メルカトルへの対応 #16

Merged
merged 8 commits into from
Mar 17, 2025

Conversation

Tomoya-Sato
Copy link
Contributor

@Tomoya-Sato Tomoya-Sato commented Mar 14, 2025

本PRは破壊的変更を含みます

Description

任意の座標を原点とした横メルカトル投影法(TM: Transverse Mercator)に対応するためのPRです。
従来の日本平面直角座標系とMGRSの対応に追加してTMをサポートするため切り替えの方法などを変更しています。
TM座標系を利用する場合は投影の原点や楕円体モデルの情報(長半径・扁平率の逆数)や縮尺係数などもパラメータとして指定することが必要となります。

Test

テストプログラム llh_test を更新し新しいバージョンに対応させました。

GSIGEO2011 Test
Testing (    35,    135) ... TEST SUCCESS: 37.0557 == 37.0557
Testing ( 35.01, 135.01) ... TEST SUCCESS: 37.0925 == 37.0925
Testing (  35.5,  135.5) ... TEST SUCCESS: 36.8691 == 36.8691
Testing (    35,    137) ... TEST SUCCESS: 38.4267 == 38.4267
Testing (  39.2,  140.9) ... TEST SUCCESS: 41.7035 == 41.7035
Testing (  43.3,  141.8) ... TEST SUCCESS: 31.3455 == 31.3455
Testing (    43,    141) ... TEST SUCCESS: 33.5306 == 33.5306
Testing (  33.1,  131.1) ... TEST SUCCESS: 33.0331 == 33.0331
Testing (  26.6,  128.1) ... TEST SUCCESS: 32.2696 == 32.2696
TEST SUCCESS: 37.0557 == 37.0557
TEST SUCCESS: -37.0557 == -37.0557
GSIGEO2024 Test
Testing (  36.1044,   140.085) ... TEST SUCCESS: 40.3059 == 40.3059
Testing (  35.1604,   139.616) ... TEST SUCCESS: 36.7568 == 36.7568
LLHConverter Test
Testing MGRS  ... TEST SUCCESS: 45346.7, 28608.4 == 45346.7, 28608.4
Testing JPRCS ... TEST SUCCESS: 105843, -54845.8 == 105843, -54845.8
Testing TM    ... TEST SUCCESS: 0, 0 == 0, 0

@rsasaki0109 rsasaki0109 self-requested a review March 14, 2025 10:36
@rsasaki0109 rsasaki0109 merged commit 3e2ae88 into main Mar 17, 2025
@rsasaki0109 rsasaki0109 deleted the feature/TM-mercator branch March 17, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants