aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Warmerdam <warmerdam@pobox.com>2003-03-17 17:46:47 +0000
committerFrank Warmerdam <warmerdam@pobox.com>2003-03-17 17:46:47 +0000
commit39832c0d5af03f9a4829c28fc3deddf2781aec61 (patch)
treeaaf8a3f7335ec7a93deeb7ae74942826318ee605
parent97a5759014c95ac17c07440b92152bec156ff176 (diff)
downloadPROJ-39832c0d5af03f9a4829c28fc3deddf2781aec61.tar.gz
PROJ-39832c0d5af03f9a4829c28fc3deddf2781aec61.zip
New
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1095 4e78687f-474d-0410-85f9-8d5e500ac6b2
-rw-r--r--nad/ntv2_out.dist11
-rwxr-xr-xnad/testntv248
2 files changed, 59 insertions, 0 deletions
diff --git a/nad/ntv2_out.dist b/nad/ntv2_out.dist
new file mode 100644
index 00000000..937579cb
--- /dev/null
+++ b/nad/ntv2_out.dist
@@ -0,0 +1,11 @@
+##############################################################
+Point in the ONwinsor subgrid.
+82d00'00.000"W 42d00'00.000"N 0.0 81d59'59.7731"W 42d0'0.2222"N 0.000
+82d00'01.000"W 42d00'00.000"N 0.0 82d0'0.773136"W 42d0'0.222205"N 0.000
+82d00'02.000"W 42d00'00.000"N 0.0 82d0'1.773172"W 42d0'0.222211"N 0.000
+84d00'00.000"W 42d00'00.000"N 0.0 84d0'0.2384"W 42d0'0.11301"N 0.000
+##############################################################
+Try with NTv2 and NTv1 together ... falls back to NTv1
+99d00'00.000"W 65d00'00.000"N 0.0 99d0'1.52932"W 65d0'1.35157"N 0.000
+111d00'00.000"W 46d00'00.000"N 0.0 111d0'3.15487"W 45d59'59.75279"N 0.000
+111d00'00.000"W 47d30'00.000"N 0.0 111d0'3.18626"W 47d29'59.90498"N 0.000
diff --git a/nad/testntv2 b/nad/testntv2
new file mode 100755
index 00000000..f9c0f696
--- /dev/null
+++ b/nad/testntv2
@@ -0,0 +1,48 @@
+:
+#
+# Test NTv2 (.gsb) support. Assumes ntv2_0.gsb is installed.
+#
+#
+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=ntv1_can.dat,conus \
+ +to +proj=latlong +datum=NAD83 \
+ -E -w6 >>${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=ntv1_can.dat,conus \
+ +to +proj=latlong +datum=NAD83 \
+ -E -w6 >>${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} ${OUT}.dist
+if [ $? -ne 0 ] ; then
+ echo ""
+ echo "PROBLEMS HAVE OCCURED"
+ echo "test file ${OUT} saved"
+else
+ echo "TEST OK"
+ echo "test file ${OUT} removed"
+ /bin/rm -f ${OUT}
+fi