aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-06-26 15:34:37 +0200
committerGitHub <noreply@github.com>2018-06-26 15:34:37 +0200
commit3eb56dbe0f6c244ea31baf75306a4554af46b4c3 (patch)
tree79b9c8940326cf3db4dc5e7f823dca4ff668c369 /test
parent540dd05de7fe3c69c81ce894cedb8ecd5e24107d (diff)
parent4e6b366e07960b19ae4c10b84c527bc2a7028337 (diff)
downloadPROJ-3eb56dbe0f6c244ea31baf75306a4554af46b4c3.tar.gz
PROJ-3eb56dbe0f6c244ea31baf75306a4554af46b4c3.zip
Merge pull request #1058 from kbevers/inverse-lagrange
Add inverse lagrange projection
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie57
1 files changed, 48 insertions, 9 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index be491346..3e2059c1 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -2418,15 +2418,54 @@ Lagrange
-------------------------------------------------------------------------------
operation +proj=lagrng +a=6400000 +W=2 +lat_1=0.5 +lat_2=2
-------------------------------------------------------------------------------
-tolerance 0.1 mm
-accept 2 1
-expect 111703.375917226 27929.831908033
-accept 2 -1
-expect 111699.122088816 -83784.178013358
-accept -2 1
-expect -111703.375917226 27929.831908033
-accept -2 -1
-expect -111699.122088816 -83784.178013358
+tolerance 0.1 mm
+accept 2 1
+expect 111703.375917226 27929.831908033
+
+roundtrip 100
+accept 2 -1
+expect 111699.122088816 -83784.178013358
+roundtrip 100
+
+accept -2 1
+expect -111703.375917226 27929.831908033
+roundtrip 100
+
+accept -2 -1
+expect -111699.122088816 -83784.178013358
+roundtrip 100
+
+accept 0 90
+expect 0.0000 12800000.0
+roundtrip 100
+
+-------------------------------------------------------------------------------
+operation +proj=lagrng +R=1 +lat_1=56
+-------------------------------------------------------------------------------
+tolerance 1 cm
+accept 12 56
+expect 0.10 0.0
+
+-------------------------------------------------------------------------------
+operation +proj=lagrng +R=1 +W=-1
+-------------------------------------------------------------------------------
+expect failure errno w_or_m_zero_or_less
+
+-------------------------------------------------------------------------------
+operation +proj=lagrng +R=1 +lat_1=90.00001
+-------------------------------------------------------------------------------
+expect failure errno lat_larger_than_90
+
+-------------------------------------------------------------------------------
+operation +proj=lagrng +R=1 +W=0.5
+-------------------------------------------------------------------------------
+accept 90 0 0
+expect failure errno tolerance_condition
+
+direction inverse
+accept 2 0 0
+expect failure errno tolerance_condition
+
===============================================================================