[SCM] PostGIS branch stable-3.4 updated. 3.4.4-59-gf9dbfd1a8
git at osgeo.org
git at osgeo.org
Mon Oct 6 16:41:48 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.4 has been updated
via f9dbfd1a801b47f4ec0ca8f9438b3bfa11bff470 (commit)
from ff86b0204c253be159154cc718f49bce3c5a8e08 (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 f9dbfd1a801b47f4ec0ca8f9438b3bfa11bff470
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Mon Oct 6 16:41:43 2025 -0700
Consistent clipping of MULTI/POINT (Paul Ramsey), references #5962
diff --git a/NEWS b/NEWS
index 53f01c3bf..e1500842a 100644
--- a/NEWS
+++ b/NEWS
@@ -33,6 +33,7 @@ Proj 6.1+ required.
- #5985, Fix configure issue with Debian 12 and 13 (Regina Obe, Sandro Santilli)
- #5991, CircularString distance error (Paul Ramsey)
- #5989, ST_Distance error on CurvePolygon (Paul Ramsey)
+ - #5962, Consistent clipping of MULTI/POINT (Paul Ramsey)
PostGIS 3.4.4
diff --git a/postgis/lwgeom_geos.c b/postgis/lwgeom_geos.c
index 77d8f5f0e..c008df184 100644
--- a/postgis/lwgeom_geos.c
+++ b/postgis/lwgeom_geos.c
@@ -1615,8 +1615,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