MCPcopy Create free account
hub / github.com/OSGeo/PROJ / reassign_context

Function reassign_context

src/transformations/defmodel.cpp:380–386  ·  view source on GitHub ↗

Function called by proj_assign_context() when a new context is assigned to an existing PJ object. Mostly to deal with objects being passed between threads.

Source from the content-addressed store, hash-verified

378// an existing PJ object. Mostly to deal with objects being passed between
379// threads.
380static void reassign_context(PJ *P, PJ_CONTEXT *ctx) {
381 auto *Q = (struct defmodelData *)P->opaque;
382 if (Q->evaluatorIface.ctx != ctx) {
383 Q->evaluator->clearGridCache();
384 Q->evaluatorIface.ctx = ctx;
385 }
386}
387
388PJ *PJ_TRANSFORMATION(defmodel, 1) {
389 // Pass a dummy ellipsoid definition that will be overridden just afterwards

Callers 4

reassign_contextMethod · 0.85
reassign_contextMethod · 0.85
reassign_contextMethod · 0.85
reassign_contextMethod · 0.85

Calls 1

clearGridCacheMethod · 0.45

Tested by

no test coverage detected