Skip to content

Use the selected ellipsoid and projection for grid factors - #184

Open
timothyanderson096-ocdealcheck wants to merge 1 commit into
GeoscienceAustralia:masterfrom
timothyanderson096-ocdealcheck:fix/grid-factor-projection
Open

timothyanderson096-ocdealcheck wants to merge 1 commit into
GeoscienceAustralia:masterfrom
timothyanderson096-ocdealcheck:fix/grid-factor-projection

Conversation

@timothyanderson096-ocdealcheck

Copy link
Copy Markdown

Fixes #177, reported by @BatchelorJ. geo2grid and grid2geo already use the selected ellipsoid and projection for coordinates. Pass them through when calculating the point scale factor and grid convergence as well. This addresses the existing factors; #182 adds separate height and combined scale factors.

At station ANNA in the project’s NSW Integrated Survey Grid fixtures, both directions previously returned a point scale factor of 0.99969053. Both now return 1.00003051, matching PROJ for ESRI:102078. The test also checks convergence using GeodePy’s sign convention.

The new regression failed on master in both directions. All 75 tests passed on Linux with Python 3.12. An independent check compared 250 forward/inverse conversions with PROJ across five configurations, including the default UTM projection.

Prepared and tested with OpenAI Codex.

Timothy Anderson · Spotted Ridge Engineering / OC Labs · GDN (Global Decision Network)
timothyanderson096@gmail.com · Engineering evidence

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.

Usage of default variables for psfandgridconv in geo2grid and grid2geo

1 participant