[geos-commits] [SCM] GEOS branch main updated. 16b0ff43491775cc98e23d8896f795a97059719c

git at osgeo.org git at osgeo.org
Mon Apr 7 14:39:56 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  16b0ff43491775cc98e23d8896f795a97059719c (commit)
      from  1e4d0b01fe307b347fb629793baf8488146d041b (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 16b0ff43491775cc98e23d8896f795a97059719c
Author: Aurele Ferotin <33065839+Oreilles at users.noreply.github.com>
Date:   Mon Apr 7 23:39:34 2025 +0200

    Add missing cases for GEOS_MULTICURVE and GEOS_MULTISURFACE in GEOSGeom_createEmptyCollection_r (#1254)

diff --git a/capi/geos_ts_c.cpp b/capi/geos_ts_c.cpp
index d7545469d..0c5df6f52 100644
--- a/capi/geos_ts_c.cpp
+++ b/capi/geos_ts_c.cpp
@@ -2179,6 +2179,12 @@ extern "C" {
             case GEOS_MULTIPOLYGON:
                 g = gf->createMultiPolygon();
                 break;
+            case GEOS_MULTICURVE:
+                g = gf->createMultiCurve();
+                break;
+            case GEOS_MULTISURFACE:
+                g = gf->createMultiSurface();
+                break;
             default:
                 throw IllegalArgumentException("Unsupported type request for GEOSGeom_createEmptyCollection_r");
             }

-----------------------------------------------------------------------

Summary of changes:
 capi/geos_ts_c.cpp | 6 ++++++
 1 file changed, 6 insertions(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list