diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-09-28 14:47:08 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2021-09-28 14:47:08 +0200 |
| commit | f982d9d3104731727c445930bf14008d1c572d0a (patch) | |
| tree | 1f9a9febc6e759ccee0f120bffaee25b2fe1b3dd /src/iso19111/factory.cpp | |
| parent | bc30adc7d84aa07a551391f722c1ab7bcaae60ee (diff) | |
| download | PROJ-f982d9d3104731727c445930bf14008d1c572d0a.tar.gz PROJ-f982d9d3104731727c445930bf14008d1c572d0a.zip | |
Database: add IAU_2015 CRS
Diffstat (limited to 'src/iso19111/factory.cpp')
| -rw-r--r-- | src/iso19111/factory.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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]; } |
