diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-05-19 01:31:25 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-05-19 14:15:46 +0200 |
| commit | 4ee2ed65f728985e53ba0c76590f07b253b03587 (patch) | |
| tree | 19d5cdf40d8acad6791c1bcff86ee43fc725e3db /src/iso19111/coordinateoperation.cpp | |
| parent | 9c501221de38e0e4462e9852df8f5a621688de68 (diff) | |
| download | PROJ-4ee2ed65f728985e53ba0c76590f07b253b03587.tar.gz PROJ-4ee2ed65f728985e53ba0c76590f07b253b03587.zip | |
createOperations(): fix 'caching' bugs causing potential exception about Inconsistent chainging of CRS (fixes #2232)
Diffstat (limited to 'src/iso19111/coordinateoperation.cpp')
| -rw-r--r-- | src/iso19111/coordinateoperation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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<Transformation>(*this); transf->assignSelf(transf); transf->setCRSs(this, false); + if (transf->d->forwardOperation_) { + transf->d->forwardOperation_ = + transf->d->forwardOperation_->shallowClone().as_nullable(); + } return transf; } |
