From 6cc83a2c80dec40f15d58dc335449aabddca4743 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Tue, 21 Jan 2020 18:20:35 +0100 Subject: 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 --- src/iso19111/crs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/iso19111') 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:: -- cgit v1.2.3