aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-06-01 22:50:55 +0200
committerGitHub <noreply@github.com>2018-06-01 22:50:55 +0200
commitde44aa7a16afc85f946194a3a783eb012289c912 (patch)
treeb32f518442bac669ee7cf81bd8bc53e574c428e9 /test
parentfea2d9b00fdcb6a96435ced99c92edc483906c6f (diff)
parentc480b1adc5738b5d7d52caeed737a160fabe0a91 (diff)
downloadPROJ-de44aa7a16afc85f946194a3a783eb012289c912.tar.gz
PROJ-de44aa7a16afc85f946194a3a783eb012289c912.zip
Merge pull request #1026 from kbevers/fix-geocent
Do not pivot over WGS84 when doing cs2cs-emulation with geocent
Diffstat (limited to 'test')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index 99875cac..f01d9352 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -291,4 +291,22 @@ accept 4.05 52.1 0
expect 4.05 52.1 -10
-------------------------------------------------------------------------------
+-------------------------------------------------------------------------------
+Test bug fix of https://github.com/OSGeo/proj.4/issues/1025.
+Using geocent in the new API with a custom ellipsoid should return coordinates
+that correspond to that particular ellipsoid and not WGS84 as demonstrated in
+the bug report.
+-------------------------------------------------------------------------------
+operation +proj=pipeline +step
+ +proj=longlat +a=3396190 +b=3376200 +inv +step
+ +proj=geocent +a=3396190 +b=3376200 +lon_0=0 +units=m
+accept 0.0 0.0 0.0
+expect 3396190.0 0.0 0.0
+roundtrip 1
+
+operation +proj=geocent +a=3396190 +b=3376200 +lon_0=0 +units=m
+accept 0.0 0.0 0.00
+expect 3396190.0 0.0 0.0
+roundtrip 1
+
</gie>