[geos-commits] [SCM] GEOS branch main updated. 2841a0dc9c1931f4ca78701476c87b8cd3f41b58
git at osgeo.org
git at osgeo.org
Tue Mar 31 09:27:38 PDT 2026
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 2841a0dc9c1931f4ca78701476c87b8cd3f41b58 (commit)
via 38c0f66df4b3c029add23d701cacd72cf08044e5 (commit)
from efa5d0ff93d7a49a135b3ad9816247f01efe9b47 (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 2841a0dc9c1931f4ca78701476c87b8cd3f41b58
Author: Daniel Baston <dbaston at gmail.com>
Date: Fri Mar 27 11:31:31 2026 -0400
geos_unit: avoid checking isValid / isSimple on curves
diff --git a/tests/unit/utility.h b/tests/unit/utility.h
index a9003be56..a4f522831 100644
--- a/tests/unit/utility.h
+++ b/tests/unit/utility.h
@@ -227,18 +227,20 @@ ensure_equals_geometry(T const* lhs_in, T const* rhs_in, double tolerance = 0.0)
lhs->normalize();
rhs->normalize();
- ensure_equals("is-valid do not match",
- lhs->isValid(), rhs->isValid());
+ if (!lhs->hasCurvedComponents() && !rhs->hasCurvedComponents()) {
+ if(!isInstanceOf<GeometryCollection>(lhs.get()) &&
+ !isInstanceOf<GeometryCollection>(rhs.get())) {
+ ensure_equals("is-simple do not match",
+ lhs->isSimple(), rhs->isSimple());
+ }
+
+ ensure_equals("is-valid do not match",
+ lhs->isValid(), rhs->isValid());
+ }
ensure_equals("is-empty do not match",
lhs->isEmpty(), rhs->isEmpty());
- if(!isInstanceOf<GeometryCollection>(lhs.get()) &&
- !isInstanceOf<GeometryCollection>(rhs.get())) {
- ensure_equals("is-simple do not match",
- lhs->isSimple(), rhs->isSimple());
- }
-
ensure_equals("type do not match",
lhs->getGeometryType(), rhs->getGeometryType());
commit 38c0f66df4b3c029add23d701cacd72cf08044e5
Author: Daniel Baston <dbaston at gmail.com>
Date: Fri Mar 27 11:30:58 2026 -0400
Surface: add clone()
diff --git a/include/geos/geom/Surface.h b/include/geos/geom/Surface.h
index 35e0d9cf1..d2e401f36 100644
--- a/include/geos/geom/Surface.h
+++ b/include/geos/geom/Surface.h
@@ -49,6 +49,8 @@ public:
void apply_rw(const CoordinateFilter* filter) override;
+ std::unique_ptr<Surface> clone() const;
+
std::unique_ptr<Geometry> convexHull() const override;
bool
diff --git a/src/geom/Surface.cpp b/src/geom/Surface.cpp
index 9a5d66277..37a41386b 100644
--- a/src/geom/Surface.cpp
+++ b/src/geom/Surface.cpp
@@ -101,6 +101,12 @@ Surface::apply_rw(GeometryFilter* filter)
filter->filter_rw(this);
}
+std::unique_ptr<Surface>
+Surface::clone() const
+{
+ return std::unique_ptr<Surface>(detail::down_cast<Surface*>(cloneImpl()));
+}
+
int
Surface::compareToSameClass(const Geometry* g) const
{
-----------------------------------------------------------------------
Summary of changes:
include/geos/geom/Surface.h | 2 ++
src/geom/Surface.cpp | 6 ++++++
tests/unit/utility.h | 18 ++++++++++--------
3 files changed, 18 insertions(+), 8 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list