From f982d9d3104731727c445930bf14008d1c572d0a Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 28 Sep 2021 14:47:08 +0200 Subject: Database: add IAU_2015 CRS --- src/iso19111/factory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/iso19111/factory.cpp b/src/iso19111/factory.cpp index 6c81b5ff..94c2de2c 100644 --- a/src/iso19111/factory.cpp +++ b/src/iso19111/factory.cpp @@ -4209,7 +4209,11 @@ AuthorityFactory::identifyBodyFromSemiMajorAxis(double semi_major_axis, throw FactoryException("no match found"); } if (res.size() > 1) { - throw FactoryException("more than one match found"); + for (const auto &row : res) { + if (row[0] != res.front()[0]) { + throw FactoryException("more than one match found"); + } + } } return res.front()[0]; } -- cgit v1.2.3