From 86530f3146ec091c26652e60067088dc3e067fae Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Wed, 19 Feb 2020 22:14:15 +0100 Subject: 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 --- test/gie/more_builtins.gie | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'test') 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 +------------------------------------------------------------------------------- + + -- cgit v1.2.3