[geos-commits] [SCM] GEOS branch main updated. 26e1cddea7b6d24d1b6c836a76bb9232888b432d
git at osgeo.org
git at osgeo.org
Sun Nov 16 15:31:52 PST 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 26e1cddea7b6d24d1b6c836a76bb9232888b432d (commit)
from e3b518f00ce17fecaed7289323829fc9bb7a1105 (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 26e1cddea7b6d24d1b6c836a76bb9232888b432d
Author: Mike Taves <mwtoews at gmail.com>
Date: Mon Nov 17 12:31:17 2025 +1300
geosop: add removeRepeatedPointsgit operation
diff --git a/util/geosop/GeometryOp.cpp b/util/geosop/GeometryOp.cpp
index 4838ab3eb..376d444b6 100644
--- a/util/geosop/GeometryOp.cpp
+++ b/util/geosop/GeometryOp.cpp
@@ -53,6 +53,7 @@
#include <geos/operation/intersection/Rectangle.h>
#include <geos/operation/relate/RelateOp.h>
#include <geos/operation/valid/MakeValid.h>
+#include <geos/operation/valid/RepeatedPointRemover.h>
#include <geos/operation/overlayng/OverlayNG.h>
#include <geos/operation/polygonize/Polygonizer.h>
#include <geos/operation/polygonize/BuildArea.h>
@@ -281,6 +282,13 @@ std::vector<GeometryOpCreator> opRegistry {
return new Result( geos::operation::valid::MakeValid().build( &geom ) );
});
}},
+{"removeRepeatedPoints", [](std::string name) { return GeometryOp::create(name,
+ catValid,
+ "remove repeated points from a geometry within a distance",
+ [](const Geometry& geom, double d) {
+ return new Result( operation::valid::RepeatedPointRemover::removeRepeatedPoints( &geom, d) );
+ });
+}},
//============= category: Construction ==================
-----------------------------------------------------------------------
Summary of changes:
util/geosop/GeometryOp.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list