From 73a65df7421d5287db2a9f7a3854a68e9310c77a Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 24 Dec 2019 12:52:13 +0100 Subject: proj_trans: add retry logic to select other transformation if the best one fails. Relates to https://github.com/OSGeo/PROJ/issues/1808 --- test/cli/ntv2_out.dist | 3 +++ test/cli/testntv2 | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'test/cli') diff --git a/test/cli/ntv2_out.dist b/test/cli/ntv2_out.dist index 650a69d8..940997fb 100644 --- a/test/cli/ntv2_out.dist +++ b/test/cli/ntv2_out.dist @@ -12,3 +12,6 @@ Try with NTv2 and NTv1 together ... falls back to NTv1 ############################################################## Switching between NTv2 subgrids -112.5839956 49.4914451 0 -112.58307487 49.49145197 0.00000000 +############################################################## +Attempt first with ntv2_0.gsb and then conus +-111.5 45.26 -111.50079772 45.25992835 0.00000000 diff --git a/test/cli/testntv2 b/test/cli/testntv2 index 2a31304e..ab72d199 100755 --- a/test/cli/testntv2 +++ b/test/cli/testntv2 @@ -60,6 +60,12 @@ $EXE +proj=latlong +datum=NAD83 +to +proj=latlong +ellps=clrk66 +nadgrids=ntv2_0 -112.5839956 49.4914451 0 EOF +echo "##############################################################" >> ${OUT} +echo Attempt first with ntv2_0.gsb and then conus >> ${OUT} +$EXE +proj=longlat +datum=NAD27 +to +proj=longlat +datum=WGS84 -E -d 8 >>${OUT} <