[geos-commits] [SCM] GEOS branch main updated. c54b93af6fead743fce357b939c84b50ba6fe84e
git at osgeo.org
git at osgeo.org
Tue Apr 15 16:07:55 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 c54b93af6fead743fce357b939c84b50ba6fe84e (commit)
from e024f2b685b98e6b7ab3922b180012245b7e1f33 (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 c54b93af6fead743fce357b939c84b50ba6fe84e
Author: Aurele Ferotin <33065839+Oreilles at users.noreply.github.com>
Date: Wed Apr 16 01:07:31 2025 +0200
Accept SimpleCurve geometries in GEOSGeomGetPointN_r (#1256)
diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index f34a54f0b..981d0cf8e 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -1912,9 +1912,9 @@ extern "C" {
GEOSGeomGetPointN_r(GEOSContextHandle_t extHandle, const Geometry* g1, int n)
{
return execute(extHandle, [&]() {
- const LineString* ls = dynamic_cast<const LineString*>(g1);
+ const SimpleCurve* ls = dynamic_cast<const SimpleCurve*>(g1);
if(!ls) {
- throw IllegalArgumentException("Argument is not a LineString");
+ throw IllegalArgumentException("Argument is not a SimpleCurve");
}
if(n < 0) {
throw IllegalArgumentException("Index must be non-negative.");
-----------------------------------------------------------------------
Summary of changes:
capi/geos_ts_c.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list