Repository navigation
fix(crs): models without block meshes, no vertical CRS for X and Y - #300
Merged
Merged
Conversation
coordinates_implausible called bounding_box() on every CRS mesh, and an empty SolidMesh throws. Models built from surfaces often keep their blocks without mesh, so any assign failed on them. Skip empty meshes. Refs Geode-solutions/Vease#873 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The CRS list offered the 497 height-only CRSs PROJ knows, like EPSG:7839 NZVD2016 height. Assigned to data, they label X and Y with a height axis: the plausibility check cannot convert them, and every later conversion fails. With older Geosciences, the null transformation even crashed the back-end. Leave the CRSs of the vertical_crs table of proj.db out of the list. known_info reads the same list, so assigning one is now refused too. Refs Geode-solutions/Vease#873 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JulienChampagnol
approved these changes
Nov 23, 2026
2 tasks done
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.
Summary
Two CRS fixes found while georeferencing the Pukekohe model (Vease#873):
coordinates_implausiblecalledbounding_box()on empty solid meshes, which throws. Empty meshes are now skipped.vertical_crstable ofproj.dbare left out of the list, andknown_inforefuses them since it reads the same list.Test plan
test_crs_routes.py,test_crs_functions.py,test_basemap.pyRefs Geode-solutions/Vease#873
🤖 Generated with Claude Code