From 17b8566f303e0585d7cd775afd5d39da8058fdc3 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 13 Dec 2018 17:49:11 +0100 Subject: Prime meridian equivalence: increase tolerance --- include/proj/common.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/proj/common.hpp b/include/proj/common.hpp index 91756c62..29d2c774 100644 --- a/include/proj/common.hpp +++ b/include/proj/common.hpp @@ -158,10 +158,14 @@ class Measure : public util::BaseObject { PROJ_DLL bool operator==(const Measure &other) PROJ_CONST_DECL; + /** Default maximum resulative error. */ + static constexpr double DEFAULT_MAX_REL_ERROR = 1e-10; + PROJ_INTERNAL bool _isEquivalentTo(const Measure &other, util::IComparable::Criterion criterion = - util::IComparable::Criterion::STRICT) const; + util::IComparable::Criterion::STRICT, + double maxRelativeError = DEFAULT_MAX_REL_ERROR) const; private: PROJ_OPAQUE_PRIVATE_DATA -- cgit v1.2.3