aboutsummaryrefslogtreecommitdiff
path: root/test/gie/more_builtins.gie
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-19 22:14:15 +0100
committerKristian Evers <kristianevers@gmail.com>2020-02-20 09:57:45 +0100
commit86530f3146ec091c26652e60067088dc3e067fae (patch)
tree7189e4c3622a51f6b2262e9b320a6f7afd6e6468 /test/gie/more_builtins.gie
parentdeb3ccf5bb2f304d20f3ce09be8fd07be4817510 (diff)
downloadPROJ-86530f3146ec091c26652e60067088dc3e067fae.tar.gz
PROJ-86530f3146ec091c26652e60067088dc3e067fae.zip
Fix wrong byte-swapping for NTv2 grids affecting master after RFC4 work (fixes #1938)
And add testing of both little-endian and big-endian NTv2 files
Diffstat (limited to 'test/gie/more_builtins.gie')
-rw-r--r--test/gie/more_builtins.gie20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index 424f941d..78a504ff 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -854,4 +854,24 @@ accept 0 0 0
expect 0 90 -6356752.314140356
+-------------------------------------------------------------------------------
+# Test handling of endianness of NTv2 grids
+-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+operation +proj=hgridshift +grids=tests/test_hgrid_little_endian.gsb
+-------------------------------------------------------------------------------
+tolerance 2 mm
+accept 4.5 52.5 0
+expect 5.875 55.375 0
+-------------------------------------------------------------------------------
+
+-------------------------------------------------------------------------------
+operation +proj=hgridshift +grids=tests/test_hgrid_big_endian.gsb
+-------------------------------------------------------------------------------
+tolerance 2 mm
+accept 4.5 52.5 0
+expect 5.875 55.375 0
+-------------------------------------------------------------------------------
+
+
</gie>