aboutsummaryrefslogtreecommitdiff
path: root/test/gie/4D-API_cs2cs-style.gie
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2018-02-12 20:44:00 +0100
committerGitHub <noreply@github.com>2018-02-12 20:44:00 +0100
commit715ec0b90aec05f15554c6591ea8cfd09d5cf043 (patch)
tree37c093f6114b68cb20e1efa20db758aba1c48742 /test/gie/4D-API_cs2cs-style.gie
parent60566a2239328d83ba809b3673a852ba7eab3690 (diff)
downloadPROJ-715ec0b90aec05f15554c6591ea8cfd09d5cf043.tar.gz
PROJ-715ec0b90aec05f15554c6591ea8cfd09d5cf043.zip
Ensure cs2cs emulation gets correct ellipsoid defn (#798)
Copy ellipsoid definition for proj=cart directly into the proj_create call, rather than calling pj_inherit_ellipsoid_def afterwards. Previously, the ellipsoid definition was left out from the call. pj_init_ctx would then pick up WGS84 from proj_def.dat, and the init would succeed (and the possibly wrong ellipsoid definition would later on be overwritten with the correct values by pj_inherit_ellipsoid_def. But if PROJ_LIB was not set or proj_def.dat was inaccessible for other reasons, things went wrong.
Diffstat (limited to 'test/gie/4D-API_cs2cs-style.gie')
-rw-r--r--test/gie/4D-API_cs2cs-style.gie3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/gie/4D-API_cs2cs-style.gie b/test/gie/4D-API_cs2cs-style.gie
index ed67afce..66da0633 100644
--- a/test/gie/4D-API_cs2cs-style.gie
+++ b/test/gie/4D-API_cs2cs-style.gie
@@ -22,7 +22,7 @@ Test the handling of the +towgs84 parameter.
This example is from Lotti Jivall: "Simplified transformations from
ITRF2008/IGS08 to ETRS89 for maritime applications" (see also more_builtins.gie)
-------------------------------------------------------------------------------
-operation proj=geocent ellps=WGS84
+operation proj=geocent
towgs84 = 0.676780, 0.654950, -0.528270,
-0.022742, 0.012667, 0.022704,
-0.01070
@@ -36,7 +36,6 @@ expect 3565285.41342351 855948.67986759 5201382.72939791
-------------------------------------------------------------------------------
-
-------------------------------------------------------------------------------
This example is a random point, transformed from ED50 to ETRS89 using KMStrans2.
-------------------------------------------------------------------------------