BUG: Fix CF axis of Cartesian axes not named Easting in cs_to_cf #1658
All Vouch review confidence checks passed
Residual risk 0.27 = Change Risk (0.46) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 269 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.335
Real PR Conversation Timeline
1 comments
"Review active on #1658"
general
weight: 0.35
djhoese
- [x] Tests added
- [x] Fully documented, including
history.rstfor all changes andapi/*.rstfor new APICoordinateSystem.to_cf()(used byCRS.cs_to_cf()) only mapped an axis named exactly "Easting" toX. Every other Cartesian axis becameY, including vertical axes:| CRS | Axes | Before | After |
|---|---|---|---|
| EPSG:2046 (Hartebeesthoek94 / Lo15) | Westing, Southing | Y, Y | X, Y |
| EPSG:5800 (Astra Minas Grid) | First local axis (north), Second local axis (west) | Y, Y | Y, X |
|
+proj=topocentric ...| topocentric East, North, Up | X, Y, Y | X, Y, Z || Engineering CRS (ship) | Forward, Starboard, Platform Down | Y, Y, Y | X, Y, Z |
The CF axis is now determined from:
1. the axis direction for vertical axes: up/down →
Zwithpositiveset to the direction.standard_nameis not set as the height reference is not known;2. the axis name: east/west →
X, north/south →Y. The name is checked before the direction because the direction is not east/north for some axes. For example, both axes of polar stereographic EPSG:3413 point south; EPSG:3413 is tested to keep that order;3. the axis direction: east/west →
X, north/south →Y;4. when there are exactly two horizontal axes, any remaining one in order (e.g. "Forward"/"Starboard").
CRSs that were already correct (e.g. UTM, NZTM with northing first, polar stereographic) are unchanged.
Geocentric CRSs are also unchanged and still return
Yfor all three axes. I don't know of a CF standard name for geocentric axes, so I left that out of this PR.Testing
main.AI disclosure
I used an AI coding assistant (Claude Code) to help write this change and description. I reviewed the code and test results before opening the PR.
🤖 Generated with Claude Code