aboutsummaryrefslogtreecommitdiff
path: root/test/gie/more_builtins.gie
diff options
context:
space:
mode:
authorjdugge <jdugge@users.noreply.github.com>2018-08-17 22:16:43 +0200
committerKristian Evers <kristianevers@gmail.com>2018-08-17 22:16:43 +0200
commit40036c19af8ae237a9b1565852340661bb1c66f8 (patch)
treed04658184f709815aa0543df86d8c07e2609dc66 /test/gie/more_builtins.gie
parentfe13c01125c57f1a2cd9256f78ee6233891fcec0 (diff)
downloadPROJ-40036c19af8ae237a9b1565852340661bb1c66f8.tar.gz
PROJ-40036c19af8ae237a9b1565852340661bb1c66f8.zip
Implementation of Equal Earth projection (#1090)
Implement the Equal Earth projection (closes #1085)
Diffstat (limited to 'test/gie/more_builtins.gie')
-rw-r--r--test/gie/more_builtins.gie68
1 files changed, 68 insertions, 0 deletions
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index 3a6c1650..2908fd63 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -408,6 +408,74 @@ accept -81d00'00.000 34d32'30.000 0.0
expect 2_000_000.000 561_019.077 0.0
-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+Some tests from PJ_eqearth.c
+-------------------------------------------------------------------------------
+operation +proj=eqearth +ellps=WGS84
+-------------------------------------------------------------------------------
+direction forward
+tolerance 1cm
+
+accept 0 0
+expect 0 0
+
+accept -180 90
+expect -10227908.09 8402320.16
+
+accept 0 90
+expect 0.00 8402320.16
+
+accept 180 90
+expect 10227908.09 8402320.16
+
+accept 180 45
+expect 14795421.79 5486671.72
+
+accept 180 0
+expect 17263256.84 0.00
+
+accept -70 -31.2
+expect -6244707.88 -3924893.29
+
+direction inverse
+
+accept -6244707.88 -3924893.29
+expect -70 -31.2
+
+accept 17263256.84 0.00
+expect 180 0
+
+accept 14795421.79 5486671.72
+expect 180 45
+
+accept 0 0
+expect 0 0
+
+accept -10227908.09 8402320.16
+expect -180 90
+
+accept 0.00 8402320.16
+expect 0 90
+
+accept 10227908.09 8402320.16
+expect 180 90
+
+operation +proj=eqearth +R=1
+direction inverse
+
+# coordinate in valid region
+accept 0 -1.3
+expect 0 -82.318
+
+# coordinate on edge
+accept 0 -1.3173627591574
+expect 0 -90
+
+# coordinate outside valid region, should be clamped
+accept 0 -1.4
+expect 0 -90
+
+-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
run the few gie-builtin tests, which are currently either awkward or impossible