aboutsummaryrefslogtreecommitdiff
path: root/nad
diff options
context:
space:
mode:
authorPiyush Agram <piyush.agram@jpl.nasa.gov>2015-09-10 21:44:23 -0700
committerPiyush Agram <piyush.agram@jpl.nasa.gov>2015-10-23 14:47:04 -0700
commit757a2c8f946faccf9d094d76cb79e6ebe0006564 (patch)
treedede64baec7ef629e7938cd43c99a2b0b3248408 /nad
parentb5d0d2d4dd1d2431f3e88e5d26e6105ce9a5c6bf (diff)
downloadPROJ-757a2c8f946faccf9d094d76cb79e6ebe0006564.tar.gz
PROJ-757a2c8f946faccf9d094d76cb79e6ebe0006564.zip
- API Extension to include fwd3d / inv3d
- New SCH coordinate system for radar imaging systems
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 694d0d19..73a366fd 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
##############################################################################
# Done!
# do 'diff' with distribution results
diff --git a/nad/tv_out.dist b/nad/tv_out.dist
index d36ab5b2..2403236e 100644
--- a/nad/tv_out.dist
+++ b/nad/tv_out.dist
@@ -317,3 +317,17 @@ Test bug 245 (use +datum=carthage)
##############################################################
Test bug 245 (use expension of +datum=carthage)
10 34 592302.9819462 3762148.7340610 -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