[geos-commits] [SCM] GEOS branch main updated. 678482bd85082ab0c671a100373a1d9c46764ffe

git at osgeo.org git at osgeo.org
Tue Jul 7 18:11:23 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  678482bd85082ab0c671a100373a1d9c46764ffe (commit)
      from  1cd8399189d96ca1b9fac9a02517e84ce9aadee4 (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 678482bd85082ab0c671a100373a1d9c46764ffe
Author: Tom Payne <twpayne at gmail.com>
Date:   Wed Jul 8 03:10:55 2026 +0200

    geos_c.h: Make enums available with GEOS_USE_ONLY_R_API defined (#1470)

diff --git a/capi/geos_c.h.in b/capi/geos_c.h.in
index cb91502fd..26b88aca6 100644
--- a/capi/geos_c.h.in
+++ b/capi/geos_c.h.in
@@ -1108,6 +1108,16 @@ extern GEOSGeometry GEOS_DLL *GEOSPolygonHullSimplify_r(
     unsigned int isOuter,
     double vertexNumFraction);
 
+/**
+* Controls the behavior of the GEOSPolygonHullSimplify parameter.
+*/
+enum GEOSPolygonHullParameterModes {
+    /** Fraction of input vertices retained */
+    GEOSHULL_PARAM_VERTEX_RATIO = 1,
+    /** Ratio of simplified hull area to input area */
+    GEOSHULL_PARAM_AREA_RATIO = 2
+};
+
 /** \see GEOSPolygonHullSimplifyMode */
 extern GEOSGeometry GEOS_DLL *GEOSPolygonHullSimplifyMode_r(
     GEOSContextHandle_t handle,
@@ -1371,6 +1381,17 @@ extern GEOSGeometry GEOS_DLL * GEOSConstrainedDelaunayTriangulation_r(
     GEOSContextHandle_t handle,
     const GEOSGeometry *g);
 
+/** Change behaviour of \ref GEOSVoronoiDiagram */
+enum GEOSVoronoiFlags
+{
+    /** Return only edges of the Voronoi cells, as a MultiLineString **/
+    GEOS_VORONOI_ONLY_EDGES = 1,
+    /** Preserve order of inputs, such that the nth cell in the result corresponds
+     *  to the nth vertex in the input. If this cannot be done, such as for inputs
+     *  that contain repeated points, \ref GEOSVoronoiDiagram will return NULL. **/
+    GEOS_VORONOI_PRESERVE_ORDER = 2
+};
+
 /** \see GEOSVoronoiDiagram */
 extern GEOSGeometry GEOS_DLL * GEOSVoronoiDiagram_r(
     GEOSContextHandle_t extHandle,
@@ -5282,16 +5303,6 @@ extern GEOSGeometry GEOS_DLL *GEOSPolygonHullSimplify(
     double vertexNumFraction);
 
 
-/**
-* Controls the behavior of the GEOSPolygonHullSimplify parameter.
-*/
-enum GEOSPolygonHullParameterModes {
-    /** Fraction of input vertices retained */
-    GEOSHULL_PARAM_VERTEX_RATIO = 1,
-    /** Ratio of simplified hull area to input area */
-    GEOSHULL_PARAM_AREA_RATIO = 2
-};
-
 /**
 * Computes a topology-preserving simplified hull of a polygonal geometry,
 * with hull shape determined by the parameter, controlled by a parameter
@@ -5521,17 +5532,6 @@ extern GEOSGeometry GEOS_DLL * GEOSDelaunayTriangulation(
 extern GEOSGeometry GEOS_DLL * GEOSConstrainedDelaunayTriangulation(
     const GEOSGeometry *g);
 
-/** Change behaviour of \ref GEOSVoronoiDiagram */
-enum GEOSVoronoiFlags
-{
-    /** Return only edges of the Voronoi cells, as a MultiLineString **/
-    GEOS_VORONOI_ONLY_EDGES = 1,
-    /** Preserve order of inputs, such that the nth cell in the result corresponds
-     *  to the nth vertex in the input. If this cannot be done, such as for inputs
-     *  that contain repeated points, \ref GEOSVoronoiDiagram will return NULL. **/
-    GEOS_VORONOI_PRESERVE_ORDER = 2
-};
-
 /**
 * Returns the 2D Voronoi polygons or edges computed from the vertices
 * of the given geometry.

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

Summary of changes:
 capi/geos_c.h.in | 42 +++++++++++++++++++++---------------------
 1 file changed, 21 insertions(+), 21 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list