aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-12 14:41:40 +0100
committerGitHub <noreply@github.com>2019-11-12 14:41:40 +0100
commit899b7ef5c8cd6613ff89de28d60bcd34fc9ff0c4 (patch)
tree8f6c70734731108d66e6219d0ef4ab27e23d328a /src/pipeline.cpp
parentca2ab9ed24101b6bd4bdec6791deca3f7d5ad204 (diff)
parent9a23a23ef20f6f5bd10e5dd4b16fa6c03ba40895 (diff)
downloadPROJ-899b7ef5c8cd6613ff89de28d60bcd34fc9ff0c4.tar.gz
PROJ-899b7ef5c8cd6613ff89de28d60bcd34fc9ff0c4.zip
Merge pull request #1726 from rouault/proj_assign_context_fix
Fix proj_assign_context()/pj_set_ctx() with pipelines and alternative coord operations
Diffstat (limited to 'src/pipeline.cpp')
-rw-r--r--src/pipeline.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/pipeline.cpp b/src/pipeline.cpp
index a82fce31..847f8194 100644
--- a/src/pipeline.cpp
+++ b/src/pipeline.cpp
@@ -136,7 +136,11 @@ static PJ_LPZ pipeline_reverse_3d (PJ_XYZ xyz, PJ *P);
static PJ_XY pipeline_forward (PJ_LP lp, PJ *P);
static PJ_LP pipeline_reverse (PJ_XY xy, PJ *P);
-
+void pj_pipeline_assign_context_to_steps( PJ* P, PJ_CONTEXT* ctx )
+{
+ for (int i = 1; i <= static_cast<struct pj_opaque*>(P->opaque)->steps; i++)
+ proj_assign_context(static_cast<struct pj_opaque*>(P->opaque)->pipeline[i], ctx);
+}
static PJ_COORD pipeline_forward_4d (PJ_COORD point, PJ *P) {