[geos-commits] [SCM] GEOS branch main updated. e024f2b685b98e6b7ab3922b180012245b7e1f33
    git at osgeo.org 
    git at osgeo.org
       
    Tue Apr 15 13:04:53 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  e024f2b685b98e6b7ab3922b180012245b7e1f33 (commit)
      from  18fe3f42cdf8a138a634e304ad00bca775cd5559 (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 e024f2b685b98e6b7ab3922b180012245b7e1f33
Author: Aurele Ferotin <33065839+Oreilles at users.noreply.github.com>
Date:   Tue Apr 15 22:04:30 2025 +0200
    Accepts SimpleCurve geometries in GEOSGeomGetStartPoint_r and GEOSGeomGetEndPoint_r (#1255)
diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index 0c5df6f52..f34a54f0b 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -1930,9 +1930,9 @@ extern "C" {
     GEOSGeomGetStartPoint_r(GEOSContextHandle_t extHandle, const Geometry* g1)
     {
         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");
             }
 
             return ls->getStartPoint().release();
@@ -1946,9 +1946,9 @@ extern "C" {
     GEOSGeomGetEndPoint_r(GEOSContextHandle_t extHandle, const Geometry* g1)
     {
         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");
             }
             return ls->getEndPoint().release();
         });
-----------------------------------------------------------------------
Summary of changes:
 capi/geos_ts_c.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
hooks/post-receive
-- 
GEOS
    
    
More information about the geos-commits
mailing list