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 22:53:22 +0100 |
| commit | 31060c33c9499d4cdd049083a4b026e2fe5af92c (patch) | |
| tree | a4ec5f3b54ed37764aa86741def2062e140f48de /src | |
| parent | d6330021e80297493804ffecf6d108790c3e10f3 (diff) | |
| download | PROJ-31060c33c9499d4cdd049083a4b026e2fe5af92c.tar.gz PROJ-31060c33c9499d4cdd049083a4b026e2fe5af92c.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 76fbc4bd..30ba3b9e 100644 --- a/src/iso19111/crs.cpp +++ b/src/iso19111/crs.cpp @@ -3712,6 +3712,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:: |
