aboutsummaryrefslogtreecommitdiff
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
parentd227fcf36d550f244eccc5fedc2e08908451c27b (diff)
downloadPROJ-908aa5d4bb95ab4eecc039e581d64ceca6e8acc3.tar.gz
PROJ-908aa5d4bb95ab4eecc039e581d64ceca6e8acc3.zip
Tests: Test nzmg forward and inverse
-rwxr-xr-xnad/testvarious22
-rw-r--r--nad/tv_out.dist6
2 files changed, 28 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"
diff --git a/nad/tv_out.dist b/nad/tv_out.dist
index 3b16b624..f236eddc 100644
--- a/nad/tv_out.dist
+++ b/nad/tv_out.dist
@@ -337,3 +337,9 @@ Test issue #316 (switch utm to use etmerc)
##############################################################
Test issue #316 (switch utm to use etmerc)
0 83 145723.870553 9300924.845226 0.000000
+##############################################################
+Test nzmg forward projection
+175. -40. 0. 2680778.5726797 6132228.0764513 0.0000000
+##############################################################
+Test nzmg inverse projection
+2680778.57267967 6132228.07645127 0. 175.0000000 -40.0000000 0.0000000