Skip to content

Commit 8b562af

Browse files
committed
ConcatenatedOperation::fixStepsDirection(): fix detection of geocentric CRS which wrongly detected geographic 3D CRS too
1 parent f440bfd commit 8b562af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/iso19111/operation/concatenatedoperation.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,8 @@ void ConcatenatedOperation::fixStepsDirection(
274274
};
275275

276276
const auto isGeocentric = [](const crs::CRS *crs) -> bool {
277-
auto geodCRS = dynamic_cast<const crs::GeodeticCRS *>(crs);
278-
if (geodCRS && geodCRS->coordinateSystem()->axisList().size() == 3)
279-
return true;
280-
return false;
277+
const auto geodCRS = dynamic_cast<const crs::GeodeticCRS *>(crs);
278+
return (geodCRS && geodCRS->isGeocentric());
281279
};
282280

283281
// Apply axis order reversal operation on first operation if needed

0 commit comments

Comments
 (0)