aboutsummaryrefslogtreecommitdiff
path: root/src/4D_api.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-01-26 18:17:44 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-01-26 18:17:44 +0100
commit62799e10a3aa51e61e428e87f4aec10f65c737cb (patch)
tree8228d7a1a1d89a1efb1420d9507204f20f92c3ae /src/4D_api.cpp
parenta8e7ef45d132b44dd4096c6fe3703fe92b390d1e (diff)
downloadPROJ-62799e10a3aa51e61e428e87f4aec10f65c737cb.tar.gz
PROJ-62799e10a3aa51e61e428e87f4aec10f65c737cb.zip
proj_trans_generic(): make it work with multiple internal coordinate operations (fixes #1237)
Diffstat (limited to 'src/4D_api.cpp')
-rw-r--r--src/4D_api.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/4D_api.cpp b/src/4D_api.cpp
index 97aadb12..15ac1e8a 100644
--- a/src/4D_api.cpp
+++ b/src/4D_api.cpp
@@ -379,10 +379,7 @@ size_t proj_trans_generic (
coord.xyzt.z = *z;
coord.xyzt.t = *t;
- if (PJ_FWD==direction)
- coord = pj_fwd4d (coord, P);
- else
- coord = pj_inv4d (coord, P);
+ coord = proj_trans(P, direction, coord);
/* in all full length cases, we overwrite the input with the output, */
/* and step on to the next element. */