diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-01-21 18:20:35 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-01-21 18:20:38 +0100 |
| commit | 6cc83a2c80dec40f15d58dc335449aabddca4743 (patch) | |
| tree | fb315960255059aa6a2932b94c2d9e607ef4638b /src | |
| parent | 1f649f8a991a7a3abd1a93499a2b8747a8d5074d (diff) | |
| download | PROJ-6cc83a2c80dec40f15d58dc335449aabddca4743.tar.gz PROJ-6cc83a2c80dec40f15d58dc335449aabddca4743.zip | |
ProjectedCRS::identify(): fix wrong identification of some ESRI WKT linked to units
Fixes bug reported in https://lists.osgeo.org/pipermail/gdal-dev/2020-January/051481.html
Diffstat (limited to 'src')
| -rw-r--r-- | src/iso19111/crs.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/iso19111/crs.cpp b/src/iso19111/crs.cpp index d71d527e..67b0bb00 100644 --- a/src/iso19111/crs.cpp +++ b/src/iso19111/crs.cpp @@ -3728,6 +3728,15 @@ ProjectedCRS::identify(const io::AuthorityFactoryPtr &authorityFactory) const { res.emplace_back(crsNN, eqName ? 90 : 70); } else if (crs->nameStr() == thisName && CRS::getPrivate()->implicitCS_ && + coordinateSystem() + ->axisList()[0] + ->unit() + ._isEquivalentTo( + crs->coordinateSystem() + ->axisList()[0] + ->unit(), + util::IComparable::Criterion:: + EQUIVALENT) && l_baseCRS->_isEquivalentTo( crs->baseCRS().get(), util::IComparable::Criterion:: |
