aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gie/more_builtins.gie59
1 files changed, 59 insertions, 0 deletions
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index ba146b06..75ba55e9 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -794,5 +794,64 @@ expect 25 25 25 25
operation +proj=aeqd +R=1 +lat_0=91
expect failure errno lat_larger_than_90
+-------------------------------------------------------------------------------
+# cart
+-------------------------------------------------------------------------------
+
+operation +proj=cart +ellps=GRS80
+tolerance 0.001mm
+
+accept 0 0 0
+expect 6378137 0 0
+
+accept 0 90 0
+expect 0 0 6356752.314140347
+
+accept 0 -90 0
+expect 0 0 -6356752.314140347
+
+accept 90 0 0
+expect 0 6378137 0
+
+accept -90 0 0
+expect 0 -6378137 0
+
+accept 180 0 0
+expect -6378137 0 0
+
+accept -180 0 0
+expect -6378137 0 0
+
+# Center of Earth !
+accept 0 0 -6378137
+expect 0 0 0
+
+accept 0 90 -6356752.314140347
+expect 0 0 0
+
+direction inverse
+
+accept 6378137 0 0
+expect 0 0 0
+
+accept 0 0 6356752.314140347
+expect 0 90 0
+
+accept 0 0 -6356752.314140347
+expect 0 -90 0
+
+accept 0 6378137 0
+expect 90 0 0
+
+accept 0 -6378137 0
+expect -90 0 0
+
+accept -6378137 0 0
+expect 180 0 0
+
+# Center of Earth !
+accept 0 0 0
+expect 0 0 -6378137
+
</gie>