aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-03-28 14:23:54 +0100
committerGitHub <noreply@github.com>2019-03-28 14:23:54 +0100
commitef9c5b7da1876fa2ff6e69a22cab425992bcad25 (patch)
tree8011045e6fdde0f5b53b6e4d089a288de867e02e /test
parent053c0ddda55c6f2b34350e4c40d557ca72f5f250 (diff)
parent68bf63cc739aea3403f71cf24dd96dd25f02dad0 (diff)
downloadPROJ-ef9c5b7da1876fa2ff6e69a22cab425992bcad25.tar.gz
PROJ-ef9c5b7da1876fa2ff6e69a22cab425992bcad25.zip
Merge pull request #1383 from OSGeo/backport-1380-on-6.0
Backport #1380 on 6.0: ocea: fix behaviour when +alpha is specified
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie96
1 files changed, 96 insertions, 0 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index a4fb5055..c8eb3a11 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -3717,6 +3717,85 @@ expect 179.999104753 -0.001790493
accept -200 -100
expect -179.999104753 -0.001790493
+Direction North
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_1=45 +lat_2=45.0000001 +lon_1=0 +lon_2=0
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 19994423.837934091687 223322.760576728586
+
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_0=45 +alpha=0
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 19994423.837934091687 223322.760576728586
+
+
+Direction South
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_1=45 +lat_2=44.999999 +lon_1=0 +lon_2=0
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 111769.145040585790 -223322.760576727480
+
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_0=45 +alpha=180
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 111769.145040585790 -223322.760576727480
+
+
+Direction East
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_1=45 +lat_2=45 +lon_1=0 +lon_2=1e-8
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 9742698.935838246718 4443057.188599349000
+
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_0=45 +alpha=90
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 9742698.935838246718 4443057.188599349000
+
+
+Direction West
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_1=45 +lat_2=45 +lon_1=0 +lon_2=-1e-8
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 10363494.047136424109 -4443057.188599349000
+
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_0=45 +alpha=270
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 10363494.047136424109 -4443057.188599349000
+
+
+Direction North-East
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_1=45 +lat_2=45.00001 +lon_1=0 +lon_2=1e-5
+-------------------------------------------------------------------------------
+# 3 mm needed for MacOSX...
+tolerance 3 mm
+accept 2 1
+expect 18596261.668446537107 2747542.17330662999
+
+-------------------------------------------------------------------------------
+operation +proj=ocea +a=6400000 +lat_0=45 +alpha=35.264383770917604
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect 18596261.668446537107 2747542.17330662999
===============================================================================
Oblated Equal Area
@@ -3809,6 +3888,23 @@ accept 0 1e200
expect failure errno invalid_x_or_y
+
+Direction North-East
+-------------------------------------------------------------------------------
+operation +proj=omerc +a=6400000 +lat_0=45 +lat_1=45 +lat_2=45.00001 +lon_1=0 +lon_2=1e-5
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect -3569.825230822232 -5093592.310871849768
+
+-------------------------------------------------------------------------------
+operation +proj=omerc +a=6400000 +lat_0=45 +alpha=35.264383770917604
+-------------------------------------------------------------------------------
+tolerance 1 mm
+accept 2 1
+expect -3569.825230822232 -5093592.310871849768
+
+
===============================================================================
Ortelius Oval
Misc Sph, no inv.