aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-06-01 21:48:25 +0200
committerKristian Evers <kristianevers@gmail.com>2018-06-01 21:54:22 +0200
commitc480b1adc5738b5d7d52caeed737a160fabe0a91 (patch)
treef617571e66e83dcc1dda5b54936381993a62eaaf /test
parentba71ff265c333e7b61c65223e937e51ddd922cec (diff)
downloadPROJ-c480b1adc5738b5d7d52caeed737a160fabe0a91.tar.gz
PROJ-c480b1adc5738b5d7d52caeed737a160fabe0a91.zip
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>