From 7c543c30ba77b4a722b5b193f99af569b4ade41b Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 16 Apr 2019 22:42:25 +0200 Subject: vgridshift: handle longitude wrap-around for grids with 360deg longitude extent Like egm96_15.gtx Fixes #1415 Technically, a similar fix could be done for horizontal grids, but world extent is less common for them. --- test/gie/more_builtins.gie | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie index 30ddc0d5..ba146b06 100644 --- a/test/gie/more_builtins.gie +++ b/test/gie/more_builtins.gie @@ -253,6 +253,24 @@ ignore pjd_err_failed_to_load_grid accept 12.5 55.5 0 0 expect 12.5 55.5 -36.021305084228516 0 +accept -180.1 0 0 +expect -180.1 0 -21.2423 + +accept 179.9 0 0 +expect 179.9 0 -21.2423 + +accept 180 0 0 +expect 180 0 -21.1533 + +accept 540 0 0 +expect 540 0 -21.1533 + +accept -180 0 0 +expect -180 0 -21.1533 + +accept -540 0 0 +expect -540 0 -21.1533 + roundtrip 100 1 nm ------------------------------------------------------------------------------- Fail on purpose: +grids parameter is mandatory -- cgit v1.2.3