From a7158d18c2620ddb1ce7cc3fe6e3eef28ca06031 Mon Sep 17 00:00:00 2001 From: Didier Richard Date: Sun, 13 Jan 2008 14:09:54 +0000 Subject: Add unit tests for some SRSs of IGNF authority. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1430 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- nad/testIGNF | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100755 nad/testIGNF (limited to 'nad/testIGNF') diff --git a/nad/testIGNF b/nad/testIGNF new file mode 100755 index 00000000..3fee805f --- /dev/null +++ b/nad/testIGNF @@ -0,0 +1,106 @@ +: +# Script to test some points in IGNF managed SRS. +# The expected coordinates have been calculed by +# other means. +# Usually, the diff is less than 10 cm, except for +# the LAMBE to LAMB93 point 8 which is just out of +# the ntf_r93.gsb grid ! +# On the Reunion Island, the diff might be up to 1m. +# +EXE=$1 + +usage() +{ + echo "Usage: ${0} " + echo + exit 1 +} + +if test -z "${EXE}"; then + echo "*** ERROR: Missing path to 'cs2cs' program." + usage +else + if test ! -x ${EXE}; then + echo "*** ERROR: Can not find '${EXE}' program!" + exit 1 + fi +fi + +echo "============================================" +echo "Running ${0} using ${EXE}:" +echo "============================================" + +OUT=proj_outIGNF +INIT_FILE=./IGNF +RES="-f %.3f" +# +echo "doing tests into file ${OUT}, please wait" +# +$EXE +init=${INIT_FILE}:LAMBE +to +init=${INIT_FILE}:LAMB93 -E $RES >${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <>${OUT} <