aboutsummaryrefslogtreecommitdiff
path: root/test/gie/more_builtins.gie
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-26 20:36:33 +0100
committerKristian Evers <kristianevers@gmail.com>2020-02-27 13:19:13 +0100
commita9bc6e5fb000f618c9df6276f4ef79063ce4cdfc (patch)
treefc9f7df9d9d237f42c49137e863a501717f8718e /test/gie/more_builtins.gie
parent8d665f20a743b136cb43943ff255ddadf1ead92d (diff)
downloadPROJ-a9bc6e5fb000f618c9df6276f4ef79063ce4cdfc.tar.gz
PROJ-a9bc6e5fb000f618c9df6276f4ef79063ce4cdfc.zip
Make tests independent of proj-datumgrid
Fixes #1984 - Copy BETA2007.gsb, MD, alaska, conus, ntf_r93.gsb, ntv1_can.dat grids from proj-datumgrid to data/tests. - Replace a couple uses of nzgd2kgrid0005.gsb in tests by ntf_r93.gsb - Add downsampled/subsetted versions of egm96_15.gtx as tests/egm96_15_downsampled.gtx and ntv2_0.gsb as tests/ntv2_0_downsampled.gsb This results in a few changes in expected results - Simpify travis/install.sh due to less configurations to test This results in a hopefully acceptable increase of the proj-X.Y.Z.tar.gz from 2.9 to 5.3 MB
Diffstat (limited to 'test/gie/more_builtins.gie')
-rw-r--r--test/gie/more_builtins.gie39
1 files changed, 13 insertions, 26 deletions
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index 78a504ff..a3e9d398 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -241,35 +241,27 @@ Some tests from PJ_vgridshift.c
-------------------------------------------------------------------------------
operation proj=vgridshift grids=egm96_15.gtx ellps=GRS80
-------------------------------------------------------------------------------
-Appears there is a difference between the egm96_15.gtx distributed by OSGeo4W,
-and the one from https://download.osgeo.org/proj/vdatum/egm96_15/egm96_15.gtx
-N(12.5, 55.5) = -36.021305084228515625 (download.osgeo.org)
-N(12.5, 55.5) = -35.880001068115234000 (OSGeo4W)
-This is annoying, but must be handled elsewhere. We jump through the hoop by
-setting a very lax tolerance.
--------------------------------------------------------------------------------
-tolerance 15 cm
-ignore pjd_err_failed_to_load_grid
+tolerance 1 cm
accept 12.5 55.5 0 0
-expect 12.5 55.5 -36.021305084228516 0
+expect 12.5 55.5 -36.394090697 0
accept -180.1 0 0
-expect -180.1 0 -21.2423
+expect -180.1 0 -20.835222268
accept 179.9 0 0
-expect 179.9 0 -21.2423
+expect 179.9 0 -20.835222268
accept 180 0 0
-expect 180 0 -21.1533
+expect 180 0 -20.756538510
accept 540 0 0
-expect 540 0 -21.1533
+expect 540 0 -20.756538510
accept -180 0 0
-expect -180 0 -21.1533
+expect -180 0 -20.756538510
accept -540 0 0
-expect -540 0 -21.1533
+expect -540 0 -20.756538510
roundtrip 100 1 nm
-------------------------------------------------------------------------------
@@ -285,25 +277,20 @@ expect failure errno failed_to_load_grid
-------------------------------------------------------------------------------
operation proj=vgridshift grids=egm96_15.gtx ellps=GRS80 multiplier=0.1
tolerance 15 cm
-ignore pjd_err_failed_to_load_grid
accept 12.5 55.5 0 0
expect 12.5 55.5 3.6021305084228516 0
-------------------------------------------------------------------------------
Some tests from PJ_hgridshift.c
-------------------------------------------------------------------------------
-operation proj=hgridshift +grids=nzgd2kgrid0005.gsb ellps=GRS80
--------------------------------------------------------------------------------
-Note: These data are home grown and suitable for regression testing only
-We need a set of authoritative test cases to test the nzgd2000 grid.
+operation proj=hgridshift +grids=ntf_r93.gsb ellps=GRS80
-------------------------------------------------------------------------------
tolerance 1 mm
-ignore pjd_err_failed_to_load_grid
-accept 172.999892181021551 -45.001620431954613
-expect 173 -45
+accept 2.250704350387 46.500051597273
+expect 2.25 46.5
direction inverse
-accept 173 -45
-expect 172.999892181021551 -45.001620431954613
+accept 2.25 46.5
+expect 2.250704350387 46.500051597273
-------------------------------------------------------------------------------