-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve cmd_declination_conv_proj_bug testcase
Change the input coordinate system to one which doesn't given different results depending on whether the datum grid is installed or not, which was causing CI to fail on macOS.
- Loading branch information
Showing
2 changed files
with
18 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
; pos=yes warn=0 | ||
; Reduced testcase posted by Patrick Warren to the mailing list | ||
; The convergence was wrong by 90 degrees with PROJ < 9.3.0. Survex 1.4.6 | ||
; works around the problem. Also if *cs out was after *declination auto | ||
; a grid convergence of 0 degrees was used - Survex 1.4.6 calculates the | ||
; convergence lazily which happens when we read a compass reading, and | ||
; gives an error if the output coordinate system hasn't been set by then. | ||
*cs OSGB:SD | ||
*declination auto 97480 72608 225 | ||
; Based on reduced testcase posted by Patrick Warren to the mailing list. | ||
; | ||
; The input coordinate system has been changed from OSGB:SD as that was giving | ||
; different output on Linux and macOS depending whether the datum grid is | ||
; installed. | ||
; | ||
; The convergence value was 90-v instead of v with PROJ < 9.3.0. Survex 1.4.6 | ||
; works around the problem. | ||
; | ||
; Also if *cs out was after *declination auto a grid convergence of 0 degrees | ||
; was used - Survex 1.4.6 calculates the convergence lazily which happens when | ||
; we read a compass reading, and gives an error if the output coordinate system | ||
; hasn't been set by then. | ||
*cs EPSG:25830 | ||
*declination auto 562696.24 6000557.63 225 | ||
*cs out EPSG:3042 | ||
*date 2005.12.15 | ||
*fix 1 97480 72608 225 | ||
*fix 1 562696.24 6000557.63 225 | ||
*data normal from to tape compass clino | ||
1 2 25.0 000 0 ; due north, magnetic |