aboutsummaryrefslogtreecommitdiff
path: root/data/testntv2
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2018-09-18 21:37:20 +0200
committerEven Rouault <even.rouault@spatialys.com>2018-09-18 22:58:57 +0200
commiteb2862c80971f106c69bfb46e8324104634fe1f2 (patch)
tree48936a83bc069717a87398a39727ef18d064e972 /data/testntv2
parentd7366ffdd5cbe5ba6c2d9f917d064085bbc3eddc (diff)
downloadPROJ-eb2862c80971f106c69bfb46e8324104634fe1f2.tar.gz
PROJ-eb2862c80971f106c69bfb46e8324104634fe1f2.zip
Move data/test* scripts and expected results to test/old/
Diffstat (limited to 'data/testntv2')
-rwxr-xr-xdata/testntv274
1 files changed, 0 insertions, 74 deletions
diff --git a/data/testntv2 b/data/testntv2
deleted file mode 100755
index 6e4a831a..00000000
--- a/data/testntv2
+++ /dev/null
@@ -1,74 +0,0 @@
-:
-#
-# Test NTv2 (.gsb) support. Assumes ntv2_0.gsb is installed.
-#
-#
-DATA_DIR=`dirname $0`
-EXE=$1
-
-usage()
-{
- echo "Usage: ${0} <path to 'cs2cs' program>"
- 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} <<EOF
-82d00'00.000"W 42d00'00.000"N 0.0
-82d00'01.000"W 42d00'00.000"N 0.0
-82d00'02.000"W 42d00'00.000"N 0.0
-84d00'00.000"W 42d00'00.000"N 0.0
-EOF
-
-echo "##############################################################" >> ${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} <<EOF
-99d00'00.000"W 65d00'00.000"N 0.0
-111d00'00.000"W 46d00'00.000"N 0.0
-111d00'00.000"W 47d30'00.000"N 0.0
-EOF
-#
-##############################################################################
-# Done!
-# do 'diff' with distribution results
-echo "diff ${OUT} with ${OUT}.dist"
-diff -b ${OUT} ${DATA_DIR}/${OUT}.dist
-if [ $? -ne 0 ] ; then
- echo ""
- echo "PROBLEMS HAVE OCCURRED"
- echo "test file ${OUT} saved"
- echo
- exit 100
-else
- echo "TEST OK"
- echo "test file ${OUT} removed"
- echo
- /bin/rm -f ${OUT}
- exit 0
-fi
-