Skip to content

Commit

Permalink
ConcatenatedOperation::fixStepsDirection(): fix detection of geocentr…
Browse files Browse the repository at this point in the history
…ic CRS which wrongly detected geographic 3D CRS too
  • Loading branch information
rouault committed Jul 11, 2023
1 parent 9c29825 commit 2e86a0a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/iso19111/operation/concatenatedoperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,8 @@ void ConcatenatedOperation::fixStepsDirection(
};

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

// Apply axis order reversal operation on first operation if needed
Expand Down

0 comments on commit 2e86a0a

Please sign in to comment.