Repository navigation
Retain the supplied datum Z offset - #251
Draft
stefanmaierhofer wants to merge 1 commit into
Draft
stefanmaierhofer wants to merge 1 commit into
stefanmaierhofer wants to merge 1 commit into
Conversation
Store dz independently of dy so Helmert transforms use the requested vertical translation, including the predefined WGS84/Austria datums. Leave rotation, scale and transform arithmetic unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix
Retain the supplied
dzinGeoDatuminstead of copyingdyinto the Z-translation field. Helmert transforms now use the requested Z offset, including −466/−463.919 m for the predefined WGS84→Austria datums and the corresponding positive reverse offsets.Leave rotations, scale, predefined parameters and Helmert arithmetic unchanged. Datums with different Y/Z offsets intentionally produce corrected Z coordinates; datums with equal offsets retain their results.
Performance
Matched constructor and cached Helmert queries use
dy == dz, so both versions produce identical results. Timing includes input reads, all seven returned constructor fields plus an escaping reference store, or returned XYZ accumulation; setup and reference checks are excluded.Initial throughput changes ranged −2.0..+18.0%; longer repeats ranged −6.8..+3.8%, all candidate intervals uncertain. Identical-binary controls ranged −5.2..+42.6%, with one apparent favorable interval and five uncertain; they were not subtracted. These results establish neither gains nor equivalence.
Modal allocations match at 72 B/construction and 0 B/Helmert call, with small intermittent excess observations on both binaries. Draft retained for timing and allocation uncertainty.