aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-04-09 22:28:20 +0200
committerKristian Evers <kristianevers@gmail.com>2018-04-09 23:56:03 +0200
commitb7c59722cb0058391e47d2899d510961a0985c59 (patch)
tree081af13459b1d7b3e696c86a9b0adb557119dc2d
parentbc8026a46606abf48679d81d80991623d5b91ca7 (diff)
downloadPROJ-b7c59722cb0058391e47d2899d510961a0985c59.tar.gz
PROJ-b7c59722cb0058391e47d2899d510961a0985c59.zip
Add more test cases for airy projection
-rw-r--r--test/gie/builtins.gie68
1 files changed, 68 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 4d744135..84d5c832 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -318,6 +318,74 @@ expect -189109.886908621 94583.752387504
accept -2 -1
expect -189109.886908621 -94583.752387504
+-------------------------------------------------------------------------------
+Test north polar aspect
+-------------------------------------------------------------------------------
+operation +proj=airy +R=1 +lat_0=90
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 0
+expect 0 -1.3863
+accept 0 90
+expect 0 0
+accept 0 -90
+expect failure errno tolerance_condition
+
+
+-------------------------------------------------------------------------------
+Test south polar aspect
+-------------------------------------------------------------------------------
+operation +proj=airy +R=1 +lat_0=-90
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 0
+expect 0 1.3863
+accept 0 -90
+expect 0 0
+accept 0 90
+expect failure errno tolerance_condition
+
+-------------------------------------------------------------------------------
+Test oblique aspect
+-------------------------------------------------------------------------------
+operation +proj=airy +R=1 +lon_0=45 +lat_0=45
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 45 45
+expect 0 0
+accept 0 0
+expext -0.7336 -0.5187
+accept -45 -45
+expect failure errno tolerance_condition
+
+-------------------------------------------------------------------------------
+Test that coordinates on the opposing hemisphere are projected when using
++no_cut.
+-------------------------------------------------------------------------------
+operation +proj=airy +R=1 +lat_0=-90 +no_cut
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 10
+expect 0 1.5677
+
+
+-------------------------------------------------------------------------------
+Test the +lat_b parameter
+-------------------------------------------------------------------------------
+operation +proj=airy +R=1 +lat_b=89.99999999 # check tolerance
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 0
+expect 0 0
+-------------------------------------------------------------------------------
+operation +proj=airy +R=1 +lat_b=30
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 0 0
+expect 0 0
+accept 25 25
+expect 0.3821 0.4216
+
===============================================================================
Aitoff