mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
e99d61570b
* [gdal] Update to 3.7.0 * [pdal] Fix build with gdal 3.7
23 lines
948 B
Diff
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.");
|