[geos-commits] [SCM] GEOS branch main updated. 9e56f1e8b359f8f61efbbfed756e1462ef13fde1

git at osgeo.org git at osgeo.org
Tue Jul 8 15:32:14 PDT 2025


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, main has been updated
       via  9e56f1e8b359f8f61efbbfed756e1462ef13fde1 (commit)
      from  0881e75c0672ee3b8529373c66f76368d8c864ee (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9e56f1e8b359f8f61efbbfed756e1462ef13fde1
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Jul 8 15:31:45 2025 -0700

    Remove *(foo.get()) syntax everywhere

diff --git a/src/algorithm/construct/LargestEmptyCircle.cpp b/src/algorithm/construct/LargestEmptyCircle.cpp
index c4fc40f09..b83d6f1ce 100644
--- a/src/algorithm/construct/LargestEmptyCircle.cpp
+++ b/src/algorithm/construct/LargestEmptyCircle.cpp
@@ -171,7 +171,7 @@ LargestEmptyCircle::distanceToConstraints(const Coordinate& c)
         return -boundaryDist;
 
     }
-    double dist = obstacleDistance.distance(*(pt.get()));
+    double dist = obstacleDistance.distance(*pt);
     return dist;
 }
 
@@ -200,7 +200,7 @@ LargestEmptyCircle::initBoundary()
     gridEnv = *(boundary->getEnvelopeInternal());
     // if boundary does not enclose an area cannot create a ptLocator
     if (boundary->getDimension() >= 2) {
-        boundaryPtLocater = detail::make_unique<algorithm::locate::IndexedPointInAreaLocator>(*(boundary.get()));
+        boundaryPtLocater = detail::make_unique<algorithm::locate::IndexedPointInAreaLocator>(*boundary);
         boundaryDistance = detail::make_unique<operation::distance::IndexedFacetDistance>(boundary.get());
     }
 }
@@ -273,7 +273,7 @@ LargestEmptyCircle::compute()
 
     // compute radius point
     std::unique_ptr<Point> centerPoint(factory->createPoint(centerPt));
-    const auto& nearestPts = obstacleDistance.nearestPoints(*(centerPoint.get()));
+    const auto& nearestPts = obstacleDistance.nearestPoints(*centerPoint);
     radiusPt = nearestPts->getAt(0);
 
     // flag computation
diff --git a/src/geomgraph/GeometryGraph.cpp b/src/geomgraph/GeometryGraph.cpp
index 48e5f6de2..61961ca08 100644
--- a/src/geomgraph/GeometryGraph.cpp
+++ b/src/geomgraph/GeometryGraph.cpp
@@ -113,7 +113,7 @@ GeometryGraph::getBoundaryNodes()
 {
     if(! boundaryNodes.get()) {
         boundaryNodes.reset(new std::vector<Node*>());
-        getBoundaryNodes(*(boundaryNodes.get()));
+        getBoundaryNodes(*boundaryNodes);
     }
     return boundaryNodes.get();
 }
diff --git a/src/noding/snapround/MCIndexSnapRounder.cpp b/src/noding/snapround/MCIndexSnapRounder.cpp
index 48caa2933..eb81819b9 100644
--- a/src/noding/snapround/MCIndexSnapRounder.cpp
+++ b/src/noding/snapround/MCIndexSnapRounder.cpp
@@ -120,7 +120,7 @@ MCIndexSnapRounder::checkCorrectness(
         NodedSegmentString::getNodedSubstrings(inputSegmentStrings)
     );
 
-    NodingValidator nv(*(resultSegStrings.get()));
+    NodingValidator nv(*resultSegStrings);
     try {
         nv.checkValid();
     }
diff --git a/tests/unit/io/GeoJSONReaderTest.cpp b/tests/unit/io/GeoJSONReaderTest.cpp
index 25ec0aa4f..2d474d3d7 100644
--- a/tests/unit/io/GeoJSONReaderTest.cpp
+++ b/tests/unit/io/GeoJSONReaderTest.cpp
@@ -33,7 +33,7 @@ struct test_geojsonreader_data {
         :
         pm(1000.0),
         gf(geos::geom::GeometryFactory::create(&pm)),
-        geojsonreader(*(gf.get()))
+        geojsonreader(*gf)
     {}
 
 };

-----------------------------------------------------------------------

Summary of changes:
 src/algorithm/construct/LargestEmptyCircle.cpp | 6 +++---
 src/geomgraph/GeometryGraph.cpp                | 2 +-
 src/noding/snapround/MCIndexSnapRounder.cpp    | 2 +-
 tests/unit/io/GeoJSONReaderTest.cpp            | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list