diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-11-12 14:41:40 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-12 14:41:40 +0100 |
| commit | 899b7ef5c8cd6613ff89de28d60bcd34fc9ff0c4 (patch) | |
| tree | 8f6c70734731108d66e6219d0ef4ab27e23d328a /src/ctx.cpp | |
| parent | ca2ab9ed24101b6bd4bdec6791deca3f7d5ad204 (diff) | |
| parent | 9a23a23ef20f6f5bd10e5dd4b16fa6c03ba40895 (diff) | |
| download | PROJ-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/ctx.cpp')
| -rw-r--r-- | src/ctx.cpp | 8 |
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); + } } /************************************************************************/ |
