From eb2862c80971f106c69bfb46e8324104634fe1f2 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 18 Sep 2018 21:37:20 +0200 Subject: Move data/test* scripts and expected results to test/old/ --- test/old/testntv2 | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100755 test/old/testntv2 (limited to 'test/old/testntv2') diff --git a/test/old/testntv2 b/test/old/testntv2 new file mode 100755 index 00000000..a0867789 --- /dev/null +++ b/test/old/testntv2 @@ -0,0 +1,75 @@ +: +# +# Test NTv2 (.gsb) support. Assumes ntv2_0.gsb is installed. +# +# +TEST_OLD_DIR=`dirname $0` +DATA_DIR=`dirname $0`/../../data +EXE=$1 + +usage() +{ + echo "Usage: ${0} " + echo + exit 1 +} + +if test -z "${EXE}"; then + EXE=../../src/cs2cs +fi + +if test ! -x ${EXE}; then + echo "*** ERROR: Can not find '${EXE}' program!" + exit 1 +fi + +echo "============================================" +echo "Running ${0} using ${EXE}:" +echo "============================================" + +OUT=ntv2_out +#EXE=../src/cs2cs +# +echo "doing tests into file ${OUT}, please wait" +rm -f ${OUT} +# +echo "##############################################################" >> ${OUT} +echo Point in the ONwinsor subgrid. >> ${OUT} +# +$EXE +proj=latlong +ellps=clrk66 +nadgrids=ntv2_0.gsb \ + +to +proj=latlong +datum=NAD83 -E -w4 >>${OUT} <> ${OUT} +echo Try with NTv2 and NTv1 together ... falls back to NTv1 >> ${OUT} +# +$EXE +proj=latlong +ellps=clrk66 +nadgrids=ntv2_0.gsb,ntv1_can.dat,conus \ + +to +proj=latlong +datum=NAD83 -E -w4 >>${OUT} <