[SCM] PostGIS branch stable-3.6 updated. 3.6.0-15-g190595e66

git at osgeo.org git at osgeo.org
Mon Oct 6 16:39:17 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 "PostGIS".

The branch, stable-3.6 has been updated
       via  190595e666d97bcc20f514f74f8b857509f226c6 (commit)
      from  bd6c4c16dc8d3d6a2bc9332efc052867097f3ff3 (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 190595e666d97bcc20f514f74f8b857509f226c6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Oct 6 16:38:56 2025 -0700

    Consistent clipping of MULTI/POINT (Paul Ramsey)
    References #5962

diff --git a/NEWS b/NEWS
index a3cd68d68..f60416789 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ PostGIS 3.6.1
   - #5991, CircularString distance error (Paul Ramsey)
   - #5994, Null pointer in ST_AsGeoJsonRow (Alexander Kukushkin)
   - #5998, ST_Distance error on CurvePolygon (Paul Ramsey)
+  - #5962, Consistent clipping of MULTI/POINT (Paul Ramsey)
 
 
 PostGIS 3.6.0
diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c
index 16ee36e89..339214f0d 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -1546,8 +1546,9 @@ Datum ST_ClipByBox2d(PG_FUNCTION_ARGS)
 	bbox2 = (GBOX *)PG_GETARG_POINTER(box2d_idx);
 	bbox2->flags = 0;
 
-	/* if bbox1 is covered by bbox2, return lwgeom1 */
-	if (gbox_contains_2d(bbox2, &bbox1))
+	/* If bbox1 is strictly contained by bbox2, return input geometry */
+	if (bbox2->xmin < bbox1.xmin && bbox2->xmax > bbox1.xmax &&
+	    bbox2->ymin < bbox1.ymin && bbox2->ymax > bbox1.ymax)
 	{
 		PG_RETURN_DATUM(PG_GETARG_DATUM(geom_idx));
 	}

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

Summary of changes:
 NEWS                  | 1 +
 postgis/lwgeom_geos.c | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list