From be7adb85aa92dd601a92313d5b725270596b1a95 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 13 Dec 2018 00:55:10 +0100 Subject: improve isEquivalentTo() when comparing Helmert transformations --- src/crs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/crs.cpp') 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); } // --------------------------------------------------------------------------- -- cgit v1.2.3