From c480b1adc5738b5d7d52caeed737a160fabe0a91 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Fri, 1 Jun 2018 21:48:25 +0200 Subject: Do not pivot over WGS84 when doing cs2cs-emulation with geocent --- test/gie/4D-API_cs2cs-style.gie | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test/gie/4D-API_cs2cs-style.gie') 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 + -- cgit v1.2.3