aboutsummaryrefslogtreecommitdiff
path: root/nad
diff options
context:
space:
mode:
Diffstat (limited to 'nad')
-rwxr-xr-xnad/testvarious26
-rw-r--r--nad/tv_out.dist14
2 files changed, 40 insertions, 0 deletions
diff --git a/nad/testvarious b/nad/testvarious
index 0ea4c133..3cb29d92 100755
--- a/nad/testvarious
+++ b/nad/testvarious
@@ -687,6 +687,32 @@ $EXE -f '%.7f' \
-E >>${OUT} <<EOF
10 34
EOF
+echo "##############################################################" >> ${OUT}
+echo "Test SCH forward projection" >> ${OUT}
+#
+$EXE -f '%.7f' \
+ +proj=latlong +datum=WGS84 +to +proj=sch +datum=WGS84 +plat_0=30.0 +plon_0=45.0 \
+ +phdg_0=-12.0 +nodefs \
+ -E >> ${OUT} <<EOF
+0.0 0.0
+0.0 90.0
+45.0 45.0
+45.1 44.9
+44.9 45.1
+30.0 45.0
+EOF
+echo "##############################################################" >> ${OUT}
+echo "Test SCH inverse projection" >> ${OUT}
+#
+$EXE -f '%.7f' \
+ +proj=sch +datum=WGS84 +plat_0=30.0 +plon_0=45.0 +phdg_0=-12.0 +nodefs +to \
+ +proj=latlong +datum=WGS84 \
+ -E >> ${OUT} <<EOF
+0. 0.
+0. 1000.
+1000. 0.
+1000. 1000.
+EOF
##############################################################################
echo "##############################################################" >> ${OUT}
echo "Test issue #316 (switch utm to use etmerc)" >> ${OUT}
diff --git a/nad/tv_out.dist b/nad/tv_out.dist
index 00063c47..3b16b624 100644
--- a/nad/tv_out.dist
+++ b/nad/tv_out.dist
@@ -318,6 +318,20 @@ Test bug 245 (use +datum=carthage)
Test bug 245 (use expansion of +datum=carthage)
10 34 592302.9819461 3762148.7340609 -30.3110170
##############################################################
+Test SCH forward projection
+0.0 0.0 -1977112.0305592 5551475.1418378 6595.7256583
+0.0 90.0 -4303095.6927530 -4253039.2182667 6595.7256583
+45.0 45.0 1630035.5650122 -342353.6396475 128.3445654
+45.1 44.9 1642526.7453121 -336878.8571851 131.3265616
+44.9 45.1 1617547.4295637 -347855.9734973 125.4645102
+30.0 45.0 0.0000000 0.0000000 0.0000000
+##############################################################
+Test SCH inverse projection
+0. 0. 30.0000000 45.0000000 0.0000000
+0. 1000. 29.9981240 44.9898625 -0.0003617
+1000. 0. 30.0088238 44.9978450 -0.0000000
+1000. 1000. 30.0069477 44.9877066 -0.0005228
+##############################################################
Test issue #316 (switch utm to use etmerc)
0 83 145723.870553 9300924.845226 0.000000
##############################################################