Skip to content

Commit

Permalink
check for GDAL 3.x on getAxisOrdering
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Feb 13, 2020
1 parent 9e52f76 commit 5f4e56a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdal/SpatialReference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,10 @@ std::vector<int> SpatialReference::getAxisOrdering() const
std::vector<int> output;
OGRScopedSpatialReference current = ogrCreateSrs(m_wkt);


#if GDAL_VERSION_MAJOR >= 3
output = current.get()->GetDataAxisToSRSAxisMapping();
#endif
return output;
}

Expand Down

0 comments on commit 5f4e56a

Please sign in to comment.