[geos-commits] [SCM] GEOS branch main updated. 395d979c05ddcfd729ffe80b2b18e7873dbf8b29
git at osgeo.org
git at osgeo.org
Thu Oct 1 07:24:39 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 395d979c05ddcfd729ffe80b2b18e7873dbf8b29 (commit)
from 7e7c2689257fa53ee3252c44264a776bc74c9c9f (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 395d979c05ddcfd729ffe80b2b18e7873dbf8b29
Author: Sandro Santilli <strk at kbt.io>
Date: Thu Oct 1 16:24:18 2026 +0200
Use IllegalArgumentException when given invalid boundaryNodeRule
diff --git a/capi/geos_c.h.in b/capi/geos_c.h.in
index ae9d7c384..2635099fd 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -3721,7 +3721,7 @@ extern char GEOS_DLL GEOSisSimpleDetail(
/**
* Create a GEOSisSimpleParams to hold the desired parameters
* to control the algorithm and behavior of the simplicity check process.
-* \return a parameter object configured to find all intersection
+* \return a parameter object configured to find all intersections
* and use Mod2 boundary node rule
* \see GEOSisSimpleWithParams
*
diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index 1f05db1ff..547e4570f 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -1035,6 +1035,7 @@ extern "C" {
using geos::operation::relate::RelateOp;
using geos::geom::IntersectionMatrix;
using geos::algorithm::BoundaryNodeRule;
+ using geos::util::IllegalArgumentException;
return execute(extHandle, [&]() -> char* {
std::unique_ptr<IntersectionMatrix> im;
@@ -1061,7 +1062,7 @@ extern "C" {
default:
std::ostringstream ss;
ss << "Invalid boundary node rule " << bnr;
- throw std::runtime_error(ss.str());
+ throw IllegalArgumentException(ss.str());
}
if(!im) {
@@ -1633,6 +1634,7 @@ extern "C" {
{
using geos::algorithm::BoundaryNodeRule;
using geos::operation::valid::IsSimpleOp;
+ using geos::util::IllegalArgumentException;
return execute(extHandle, 2, [&]() {
const auto inputGeom = convertToLineIfNeeded(extHandle, g1);
@@ -1654,7 +1656,7 @@ extern "C" {
default:
std::ostringstream ss;
ss << "Invalid boundary node rule " << params->boundaryNodeRule;
- throw std::runtime_error(ss.str());
+ throw IllegalArgumentException(ss.str());
}
op->setFindAllLocations( params->findAllLocations );
-----------------------------------------------------------------------
Summary of changes:
capi/geos_c.h.in | 2 +-
capi/geos_ts_c.cpp | 6 ++++--
2 files changed, 5 insertions(+), 3 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list