aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-01-25 19:51:36 +0100
committerGitHub <noreply@github.com>2020-01-25 19:51:36 +0100
commitd3e133b23fdb73a3f663f903fa8b8ca53cdf570e (patch)
tree512c0ab3946f63976459ff778912eb1449736f4b /test
parenta6c6d1de6bf70dd4142825bbf759d5a30e728021 (diff)
parent5358921291144d5a8465aa4403682b84da1431b8 (diff)
downloadPROJ-d3e133b23fdb73a3f663f903fa8b8ca53cdf570e.tar.gz
PROJ-d3e133b23fdb73a3f663f903fa8b8ca53cdf570e.zip
Merge pull request #1882 from rouault/fix_grid_antimeridian
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