From 4ee2ed65f728985e53ba0c76590f07b253b03587 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 19 May 2020 01:31:25 +0200 Subject: createOperations(): fix 'caching' bugs causing potential exception about Inconsistent chainging of CRS (fixes #2232) --- src/iso19111/coordinateoperation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/iso19111/coordinateoperation.cpp') diff --git a/src/iso19111/coordinateoperation.cpp b/src/iso19111/coordinateoperation.cpp index 9815a22a..d1bc8eb5 100644 --- a/src/iso19111/coordinateoperation.cpp +++ b/src/iso19111/coordinateoperation.cpp @@ -6587,6 +6587,10 @@ TransformationNNPtr Transformation::shallowClone() const { auto transf = Transformation::nn_make_shared(*this); transf->assignSelf(transf); transf->setCRSs(this, false); + if (transf->d->forwardOperation_) { + transf->d->forwardOperation_ = + transf->d->forwardOperation_->shallowClone().as_nullable(); + } return transf; } -- cgit v1.2.3