Skip to content

feat: add orthometric_height_offset support#26

Draft
rsasaki0109 wants to merge 6 commits intomainfrom
feature/add-vertical-datum-support
Draft

feat: add orthometric_height_offset support#26
rsasaki0109 wants to merge 6 commits intomainfrom
feature/add-vertical-datum-support

Conversation

@rsasaki0109
Copy link
Contributor

@rsasaki0109 rsasaki0109 commented Jan 23, 2026

Summary

正標高変換時に高さオフセットを適用する機能を追加。荒川工事基準面(A.P.)等の工事基準面に対応。

Changes

  • llh_converter.hpp: LLHParam 構造体に orthometric_height_offset フィールド追加(デフォルト: 0.0)
  • llh_converter.cpp: convertRad2XYZ() で ELLIPS2ORTHO 時のみオフセット適用
  • height_offset_test.cpp: テストスイート追加

Usage

llh_converter::LLHParam param;
param.orthometric_height_offset = -1.134;  // A.P. = T.P. - 1.134m

Test plan

  • デフォルト値(0.0)で従来動作維持
  • A.P.オフセット(-1.134m)正常適用
  • 楕円体高モードではオフセット無視

@rsasaki0109 rsasaki0109 changed the title Add vertical datum offset support in coordinate conversion refactor: rename vertical_datum_offset to height_offset Jan 26, 2026
@rsasaki0109 rsasaki0109 force-pushed the feature/add-vertical-datum-support branch from 60e935a to 6f8ce53 Compare February 2, 2026 01:33
座標変換処理に工事基準面補正を適用:
- LLHParam構造体にvertical_datum_offsetフィールドを追加
- 順変換(ELLIPS2ORTHO)で T.P. + offset = 工事基準面高さ を計算
- 逆変換(ORTHO2ELLIPS)で 工事基準面高さ - offset = T.P. を計算
- ジオイド補正後にオフセットを適用
Simplify the vertical datum implementation by using a single height_offset
parameter instead of the complex vertical_datum enum approach (pdca2).

Changes:
- Rename vertical_datum_offset to height_offset in LLHParam struct
- Update comments to Japanese for clarity
- Remove bidirectional correction logic (keep only ELLIPS2ORTHO)
- Add comprehensive test suite for height offset functionality

This simpler approach allows users to directly specify offset values
without maintaining preset enum values.
Align field name with YAML specification for construction reference
plane offset parameter.
Update test file to use orthometric_height_offset field name.
@rsasaki0109 rsasaki0109 force-pushed the feature/add-vertical-datum-support branch from ed5920a to 0002b92 Compare February 2, 2026 02:49
@rsasaki0109 rsasaki0109 changed the title refactor: rename vertical_datum_offset to height_offset feat: add orthometric_height_offset support Feb 2, 2026
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.

1 participant