[geos-commits] [SCM] GEOS branch main updated. 556cf8c664366c7ffef39190581a0b55f4729a75
git at osgeo.org
git at osgeo.org
Thu Oct 9 14:18:04 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 556cf8c664366c7ffef39190581a0b55f4729a75 (commit)
from 47ae3352f7a96001b07690010406afff1ef177ff (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 556cf8c664366c7ffef39190581a0b55f4729a75
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Oct 9 14:17:11 2025 -0700
Use GeometryFixer instead of Buffer(0) to validate output of Densifier
References #1294
diff --git a/src/geom/util/Densifier.cpp b/src/geom/util/Densifier.cpp
index b4ee7b2a5..9f4e27967 100644
--- a/src/geom/util/Densifier.cpp
+++ b/src/geom/util/Densifier.cpp
@@ -21,6 +21,7 @@
#include <cmath>
#include <geos/geom/util/Densifier.h>
+#include <geos/geom/util/GeometryFixer.h>
#include <geos/geom/CoordinateList.h>
#include <geos/geom/Geometry.h>
#include <geos/geom/GeometryFactory.h>
@@ -95,7 +96,7 @@ Densifier::DensifyTransformer::createValidArea(const Geometry* roughAreaGeom)
{
if (roughAreaGeom->isValid())
return Geometry::Ptr(roughAreaGeom->clone());
- return roughAreaGeom->buffer(0.0);
+ return GeometryFixer::fix(roughAreaGeom);
}
/* util::Densifier */
-----------------------------------------------------------------------
Summary of changes:
src/geom/util/Densifier.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list