We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f440bfd commit 8b562afCopy full SHA for 8b562af
src/iso19111/operation/concatenatedoperation.cpp
@@ -274,10 +274,8 @@ void ConcatenatedOperation::fixStepsDirection(
274
};
275
276
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;
+ const auto geodCRS = dynamic_cast<const crs::GeodeticCRS *>(crs);
+ return (geodCRS && geodCRS->isGeocentric());
281
282
283
// Apply axis order reversal operation on first operation if needed
0 commit comments