Skip to content

Fix VDatum reference issues and add common datum names (#190) - #191

Merged
mmacferrin merged 1 commit into
mainfrom
fix/vdatum-references-190
Sep 30, 2026
Merged

mmacferrin merged 1 commit into
mainfrom
fix/vdatum-references-190

Conversation

@mmacferrin

@mmacferrin mmacferrin commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes the VDatum reference issues from #190.

  • Add vdatum:mtl and vdatum:dtl references and operation bindings
  • Extract VDatum model grids (e.g. xGEOID20B) into cache_dir instead of the current working directory
  • InvalidReferenceError and UnsupportedReferenceError now derive from ReferenceInputError (a ValueError) instead of the built-in ReferenceError
  • parse_reference() accepts common vertical datum names (navd88, egm2008, egm96, prvd02, vivd09, asvd02, cgvd2013, and spelled-out tidal datums such as mean lower low water). Names PROJ already resolves are left to PROJ, so existing inputs parse the same way.

Item 4 (the epsg:5714 label) is intentionally left unchanged, per the discussion on the issue.

Tested by transforming a synthetic raster over Chesapeake Bay from vdatum:mtl and vdatum:dtl to NAVD88, MLLW and MSL. The shifts match the raw VDatum grids, and a direct MTL→MLLW transform matches the MTL→NAVD88→MLLW route exactly.

Closes #190


🔍 Docs preview: https://transformez--191.org.readthedocs.build/en/191/

* Add vdatum:mtl and vdatum:dtl references and operation bindings
* Extract VDatum model grids into cache_dir instead of the working directory
* Derive InvalidReferenceError and UnsupportedReferenceError from ReferenceInputError (a ValueError) rather than the built-in ReferenceError
* Accept common vertical datum names (navd88, egm2008, egm96, prvd02, vivd09, asvd02, cgvd2013, spelled-out tidal datums) in parse_reference()
* Update changelog

Closes #190
@mmacferrin
mmacferrin merged commit 2f8e12c into main Sep 30, 2026
4 checks passed
@mmacferrin
mmacferrin deleted the fix/vdatum-references-190 branch September 30, 2026 20:18
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.

VDatum references: add MTL/DTL, stop extracting grids into the working directory, and three smaller fixes

2 participants