Skip to content

feat: add orthometric_height_offset support#26

Merged
rsasaki0109 merged 6 commits intomainfrom
feature/add-vertical-datum-support
Mar 6, 2026
Merged

feat: add orthometric_height_offset support#26
rsasaki0109 merged 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
@takaya-murakami-RF takaya-murakami-RF marked this pull request as ready for review March 4, 2026 11:05
Copy link

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 To request another review, post a new comment with "/windsurf-review".

@rsasaki0109 rsasaki0109 merged commit 0a241fd into main Mar 6, 2026
@rsasaki0109 rsasaki0109 deleted the feature/add-vertical-datum-support branch March 6, 2026 07:13
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