aboutsummaryrefslogtreecommitdiff
path: root/src/ctx.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-13 00:04:52 +0100
committerGitHub <noreply@github.com>2019-11-13 00:04:52 +0100
commita13e7646a9ef8a0148bbbac0ee8d46f1501c910a (patch)
treee2278bca9c5c3f74ac62940b13ec34f110e6b4d1 /src/ctx.cpp
parentd5e5c96b46b0dea21338576e530d7e70dfd75817 (diff)
parentf970636daa814be26586bba1cfaa9fbb132da2df (diff)
downloadPROJ-a13e7646a9ef8a0148bbbac0ee8d46f1501c910a.tar.gz
PROJ-a13e7646a9ef8a0148bbbac0ee8d46f1501c910a.zip
Merge pull request #1727 from OSGeo/backport-1726-to-6.2
[Backport 6.2] Fix proj_assign_context()/pj_set_ctx() with pipelines and alternative coord operations
Diffstat (limited to 'src/ctx.cpp')
-rw-r--r--src/ctx.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctx.cpp b/src/ctx.cpp
index 622a814d..bcb6e1cc 100644
--- a/src/ctx.cpp
+++ b/src/ctx.cpp
@@ -60,6 +60,14 @@ void pj_set_ctx( projPJ pj, projCtx ctx )
if (pj==nullptr)
return;
pj->ctx = ctx;
+ if( pj->is_pipeline )
+ {
+ pj_pipeline_assign_context_to_steps(pj, ctx);
+ }
+ for( const auto &alt: pj->alternativeCoordinateOperations )
+ {
+ pj_set_ctx(alt.pj, ctx);
+ }
}
/************************************************************************/