aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2019-03-28 12:55:58 +0100
committerGitHub <noreply@github.com>2019-03-28 12:55:58 +0100
commitf4baf035dac9e8f1dd37d2121ffc3d1b3f440073 (patch)
tree8adeeac92a52f0f1464500eac466589bef4c7840 /test
parente476bc2012cfcd71f787ed036c49f1d48627c1ef (diff)
parent5cad2f68f2a68c8c6854d0bfc62700299598dfa1 (diff)
downloadPROJ-f4baf035dac9e8f1dd37d2121ffc3d1b3f440073.tar.gz
PROJ-f4baf035dac9e8f1dd37d2121ffc3d1b3f440073.zip
Merge pull request #1380 from rouault/fix_ocea_one_point
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.