aboutsummaryrefslogtreecommitdiff
path: root/src/proj_internal.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-11-12 13:33:47 +0100
committerEven Rouault <even.rouault@spatialys.com>2019-11-12 13:33:47 +0100
commit9a23a23ef20f6f5bd10e5dd4b16fa6c03ba40895 (patch)
tree8f6c70734731108d66e6219d0ef4ab27e23d328a /src/proj_internal.h
parentca2ab9ed24101b6bd4bdec6791deca3f7d5ad204 (diff)
downloadPROJ-9a23a23ef20f6f5bd10e5dd4b16fa6c03ba40895.tar.gz
PROJ-9a23a23ef20f6f5bd10e5dd4b16fa6c03ba40895.zip
Fix proj_assign_context()/pj_set_ctx() with pipelines and alternative coord operations
Fixes https://github.com/OSGeo/gdal/issues/1989 pj_set_ctx() only changes the context to the main object. It should also recurse down to the steps of the pipeline and the alternative coordinate operations hold in alternativeCoordinateOperations In the GDAL use case with multithreaded reprojection, and objects being transferred between thread, this would cause a failed coordinate transformation to affect an unrelated transformation of another thread...
Diffstat (limited to 'src/proj_internal.h')
-rw-r--r--src/proj_internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proj_internal.h b/src/proj_internal.h
index 6d978b35..5289e1c9 100644
--- a/src/proj_internal.h
+++ b/src/proj_internal.h
@@ -922,6 +922,8 @@ std::string pj_double_quote_string_param_if_needed(const std::string& str);
PJ *pj_create_internal (PJ_CONTEXT *ctx, const char *definition);
PJ *pj_create_argv_internal (PJ_CONTEXT *ctx, int argc, char **argv);
+void pj_pipeline_assign_context_to_steps( PJ* P, PJ_CONTEXT* ctx );
+
/* classic public API */
#include "proj_api.h"