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.
| 378 | // an existing PJ object. Mostly to deal with objects being passed between |
| 379 | // threads. |
| 380 | static 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 | |
| 388 | PJ *PJ_TRANSFORMATION(defmodel, 1) { |
| 389 | // Pass a dummy ellipsoid definition that will be overridden just afterwards |
no test coverage detected