vcpkg/ports/pdal/gdal-3.7.patch
Kai Pastor e99d61570b
[gdal] Update to 3.7.0 (#31381)
* [gdal] Update to 3.7.0

* [pdal] Fix build with gdal 3.7
2023-05-15 13:19:14 -07:00

23 lines
948 B
Diff

diff --git a/pdal/Geometry.cpp b/pdal/Geometry.cpp
index 608bf86..8b010d3 100644
--- a/pdal/Geometry.cpp
+++ b/pdal/Geometry.cpp
@@ -153,7 +153,7 @@ Geometry& Geometry::operator=(const Geometry& input)
bool Geometry::srsValid() const
{
- OGRSpatialReference *srs = m_geom->getSpatialReference();
+ const OGRSpatialReference *srs = m_geom->getSpatialReference();
return srs && srs->GetRoot();
}
@@ -172,7 +172,7 @@ Utils::StatusWithReason Geometry::transform(SpatialReference out)
return StatusWithReason(-2,
"Geometry::transform() failed. NULL target SRS.");
- OGRSpatialReference *inSrs = m_geom->getSpatialReference();
+ const OGRSpatialReference *inSrs = m_geom->getSpatialReference();
SrsTransform transform(*inSrs, OGRSpatialReference(out.getWKT().data()));
if (m_geom->transform(transform.get()) != OGRERR_NONE)
return StatusWithReason(-1, "Geometry::transform() failed.");