Skip to content

Retain the supplied datum Z offset - #251

Draft
stefanmaierhofer wants to merge 1 commit into
masterfrom
fix/geodatum-z-offset
Draft

stefanmaierhofer wants to merge 1 commit into
masterfrom
fix/geodatum-z-offset

Conversation

@stefanmaierhofer

Copy link
Copy Markdown
Member

Fix

Retain the supplied dz in GeoDatum instead of copying dy into 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.

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.
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