diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-12-13 00:55:10 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-12-13 00:55:10 +0100 |
| commit | be7adb85aa92dd601a92313d5b725270596b1a95 (patch) | |
| tree | e67af5c817e54aebed540876e185a1159a87eb09 /src/crs.cpp | |
| parent | c566213d28d488df622eeebb52b9aa44fd231189 (diff) | |
| download | PROJ-be7adb85aa92dd601a92313d5b725270596b1a95.tar.gz PROJ-be7adb85aa92dd601a92313d5b725270596b1a95.zip | |
improve isEquivalentTo() when comparing Helmert transformations
Diffstat (limited to 'src/crs.cpp')
| -rw-r--r-- | src/crs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crs.cpp b/src/crs.cpp index 40a8e2e1..10bec815 100644 --- a/src/crs.cpp +++ b/src/crs.cpp @@ -3806,12 +3806,13 @@ bool BoundCRS::_isEquivalentTo(const util::IComparable *other, !ObjectUsage::_isEquivalentTo(other, criterion))) { return false; } + const auto standardCriterion = getStandardCriterion(criterion); return d->baseCRS_->_isEquivalentTo(otherBoundCRS->d->baseCRS_.get(), criterion) && d->hubCRS_->_isEquivalentTo(otherBoundCRS->d->hubCRS_.get(), criterion) && d->transformation_->_isEquivalentTo( - otherBoundCRS->d->transformation_.get(), criterion); + otherBoundCRS->d->transformation_.get(), standardCriterion); } // --------------------------------------------------------------------------- |
