[SCM] PostGIS branch stable-3.2 updated. 3.2.7-52-gf42e6f14b
git at osgeo.org
git at osgeo.org
Mon Oct 6 16:43:12 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.2 has been updated
via f42e6f14b23de1971059efff3cf37c8e659ad770 (commit)
from a5bf611dc7ee92674b0882a7c1bbd404bd9d32e5 (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 f42e6f14b23de1971059efff3cf37c8e659ad770
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Oct 6 16:43:05 2025 -0700
Consistent clipping of MULTI/POINT (Paul Ramsey), references #5962
diff --git a/NEWS b/NEWS
index a6ec3149d..e04537370 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,7 @@ Proj 4.9+ required.
- #5909, ST_ValueCount crashes on empty table (Paul Ramsey)
- #5917, ST_Relate becomes unresponsive (Paul Ramsey)
- #5991, CircularString distance error (Paul Ramsey)
+ - #5962, Consistent clipping of MULTI/POINT (Paul Ramsey)
PostGIS 3.2.8
diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c
index 27b7de311..30be9a363 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -1518,8 +1518,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