[geos-commits] [SCM] GEOS branch main updated. 0db400d33d14bdbb0ab3b6d749b886996d02c67a

git at osgeo.org git at osgeo.org
Thu Oct 9 14:24:39 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  0db400d33d14bdbb0ab3b6d749b886996d02c67a (commit)
      from  556cf8c664366c7ffef39190581a0b55f4729a75 (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 0db400d33d14bdbb0ab3b6d749b886996d02c67a
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Oct 9 14:24:16 2025 -0700

    Remove unused GeometryPrecisionReducer::fixPolygonalTopology method

diff --git a/include/geos/precision/GeometryPrecisionReducer.h b/include/geos/precision/GeometryPrecisionReducer.h
index cb0cb9a82..de8afb120 100644
--- a/include/geos/precision/GeometryPrecisionReducer.h
+++ b/include/geos/precision/GeometryPrecisionReducer.h
@@ -68,8 +68,6 @@ private:
     bool useAreaReducer;
     bool isPointwise;
 
-    std::unique_ptr<geom::Geometry> fixPolygonalTopology(const geom::Geometry& geom);
-
     geom::GeometryFactory::Ptr createFactory(
         const geom::GeometryFactory& oldGF,
         const geom::PrecisionModel& newPM);
diff --git a/src/precision/GeometryPrecisionReducer.cpp b/src/precision/GeometryPrecisionReducer.cpp
index 3a5480a81..6b5f07918 100644
--- a/src/precision/GeometryPrecisionReducer.cpp
+++ b/src/precision/GeometryPrecisionReducer.cpp
@@ -83,35 +83,6 @@ GeometryPrecisionReducer::reduce(const geom::Geometry& g, const geom::PrecisionM
 }
 
 
-/* private */
-std::unique_ptr<Geometry>
-GeometryPrecisionReducer::fixPolygonalTopology(const Geometry& geom)
-{
-    /*
-     * If precision model was *not* changed, need to flip
-     * geometry to targetPM, buffer in that model, then flip back
-     */
-    std::unique_ptr<geom::Geometry> tmp;
-    GeometryFactory::Ptr tmpFactory;
-
-    const Geometry* geomToBuffer = &geom;
-
-    if(! newFactory) {
-        tmpFactory = createFactory(*geom.getFactory(), targetPM);
-        tmp = tmpFactory->createGeometry(&geom);
-        geomToBuffer = tmp.get();
-    }
-
-    std::unique_ptr<Geometry> bufGeom(geomToBuffer->buffer(0));
-
-    if(! newFactory) {
-        // a slick way to copy the geometry with the original precision factory
-        bufGeom = geom.getFactory()->createGeometry(bufGeom.get());
-    }
-
-    return bufGeom;
-}
-
 /* private */
 GeometryFactory::Ptr
 GeometryPrecisionReducer::createFactory(const GeometryFactory& oldGF,

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

Summary of changes:
 include/geos/precision/GeometryPrecisionReducer.h |  2 --
 src/precision/GeometryPrecisionReducer.cpp        | 29 -----------------------
 2 files changed, 31 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list