aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-25 03:57:46 +0100
committerEven Rouault <even.rouault@spatialys.com>2020-01-25 11:20:20 +0100
commit5358921291144d5a8465aa4403682b84da1431b8 (patch)
treecce9866a46be0189ade99827f150c73381058ba7 /test
parent1039889c424af9fd89a637e610c4243839d3cb86 (diff)
downloadPROJ-5358921291144d5a8465aa4403682b84da1431b8.tar.gz
PROJ-5358921291144d5a8465aa4403682b84da1431b8.zip
Grid correction: fix handling grids spanning antimeridian (fixes #1859)
Diffstat (limited to 'test')
-rw-r--r--test/gie/geotiff_grids.gie33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/gie/geotiff_grids.gie b/test/gie/geotiff_grids.gie
index 62a5b16d..a0d2a05b 100644
--- a/test/gie/geotiff_grids.gie
+++ b/test/gie/geotiff_grids.gie
@@ -160,7 +160,40 @@ operation +proj=vgridshift +grids=tests/test_vgrid_unsupported_byte.tif +multi
expect failure errno failed_to_load_grid
-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+operation +proj=vgridshift +grids=tests/us_noaa_geoid06_ak_subset_at_antimeridian.tif +multiplier=1
+-------------------------------------------------------------------------------
+tolerance 1 mm
+
+accept 179.99 54.5 0
+expect 179.99 54.5 -2.2226
+
+accept -179.99 54.5 0
+expect -179.99 54.5 -2.3488
+
+accept 179.999999 54.5 0
+expect 179.999999 54.5 -2.2872
+
+accept -179.999999 54.5 0
+expect -179.999999 54.5 -2.2872
+
+accept 179.8 54.5 0
+expect 179.8 54.5 -0.7011
+
+accept 179.799 54.5 0
+expect failure errno grid_area
+
+accept 180.1833333 54.5 0
+expect -179.8166667 54.5 -3.1933
+
+accept -179.8166667 54.5 0
+expect -179.8166667 54.5 -3.1933
+
+accept 180.184 54.5 0
+expect failure errno grid_area
+accept -179.816 54.5 0
+expect failure errno grid_area
-------------------------------------------------------------------------------
operation +proj=hgridshift +grids=tests/test_hgrid.tif