aboutsummaryrefslogtreecommitdiff
path: root/nad/testvarious
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2015-10-27 10:56:16 +0100
committerEven Rouault <even.rouault@spatialys.com>2015-10-27 10:56:16 +0100
commit908aa5d4bb95ab4eecc039e581d64ceca6e8acc3 (patch)
treeec4e8f850eb1046a88fea3ffa1f6f633020af354 /nad/testvarious
parentd227fcf36d550f244eccc5fedc2e08908451c27b (diff)
downloadPROJ-908aa5d4bb95ab4eecc039e581d64ceca6e8acc3.tar.gz
PROJ-908aa5d4bb95ab4eecc039e581d64ceca6e8acc3.zip
Tests: Test nzmg forward and inverse
Diffstat (limited to 'nad/testvarious')
-rwxr-xr-xnad/testvarious22
1 files changed, 22 insertions, 0 deletions
diff --git a/nad/testvarious b/nad/testvarious
index 3cb29d92..4f3ca324 100755
--- a/nad/testvarious
+++ b/nad/testvarious
@@ -731,6 +731,28 @@ $EXE -f '%.6f' \
-E >>${OUT} <<EOF
0 83
EOF
+##############################################################################
+echo "##############################################################" >> ${OUT}
+echo "Test nzmg forward projection" >> ${OUT}
+#
+$EXE -f '%.7f' \
+ +proj=latlong +datum=WGS84 +to \
+ +proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +ellps=WGS84 +units=m +no_defs \
+ -E >> ${OUT} <<EOF
+175. -40. 0.
+EOF
+##############################################################################
+echo "##############################################################" >> ${OUT}
+echo "Test nzmg inverse projection" >> ${OUT}
+#
+$EXE -f '%.7f' \
+ +proj=nzmg +lat_0=-41 +lon_0=173 +x_0=2510000 +y_0=6023150 +ellps=WGS84 +units=m +no_defs +to \
+ +proj=latlong +datum=WGS84 \
+ -E >> ${OUT} <<EOF
+2680778.57267967 6132228.07645127 0.
+EOF
+
+
# Done!
# do 'diff' with distribution results
echo "diff ${OUT} with ${OUT}.dist"