From 62799e10a3aa51e61e428e87f4aec10f65c737cb Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 26 Jan 2019 18:17:44 +0100 Subject: proj_trans_generic(): make it work with multiple internal coordinate operations (fixes #1237) --- src/4D_api.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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. */ -- cgit v1.2.3