[SCM] PostGIS branch stable-3.4 updated. 3.4.4-68-g92a107c3a
git at osgeo.org
git at osgeo.org
Wed Jan 14 06:56:35 PST 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 "PostGIS".
The branch, stable-3.4 has been updated
via 92a107c3ab7b53c4cdff3c749a11d854c30d4142 (commit)
from d8eb831cb6d5979b1170bf64df7587dd2308c98b (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 92a107c3ab7b53c4cdff3c749a11d854c30d4142
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Jan 14 15:01:14 2026 +0100
Stop using a tolerance for point-same functions
References #6023 in 3.4 branch (3.4.5dev)
This is partially reverting fdfffdb437bd937aa37c59ca9590d73882779c6e
diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c
index cd2295975..3cf3a7d33 100644
--- a/liblwgeom/lwalgorithm.c
+++ b/liblwgeom/lwalgorithm.c
@@ -31,25 +31,25 @@
int
p4d_same(const POINT4D *p1, const POINT4D *p2)
{
- return FP_EQUALS(p1->x, p2->x)
- && FP_EQUALS(p1->y, p2->y)
- && FP_EQUALS(p1->z, p2->z)
- && FP_EQUALS(p1->m, p2->m);
+ return p1->x == p2->x
+ && p1->y == p2->y
+ && p1->z == p2->z
+ && p1->m == p2->m;
}
int
p3d_same(const POINT3D *p1, const POINT3D *p2)
{
- return FP_EQUALS(p1->x, p2->x)
- && FP_EQUALS(p1->y, p2->y)
- && FP_EQUALS(p1->z, p2->z);
+ return p1->x == p2->x
+ && p1->y == p2->y
+ && p1->z == p2->z;
}
int
p2d_same(const POINT2D *p1, const POINT2D *p2)
{
- return FP_EQUALS(p1->x, p2->x)
- && FP_EQUALS(p1->y, p2->y);
+ return p1->x == p2->x
+ && p1->y == p2->y;
}
/**
diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index 04d7080c7..12114bbf2 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -1054,12 +1054,6 @@ ptarray_contains_point(const POINTARRAY *pa, const POINT2D *pt)
seg2 = getPoint2d_cp(pa, i);
- /* This is required for robustness, see #6023 */
- if (p2d_same(seg1, pt))
- {
- return LW_BOUNDARY;
- }
-
/* Zero length segments are ignored. */
if (p2d_same(seg1, seg2))
{
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/lwalgorithm.c | 18 +++++++++---------
liblwgeom/ptarray.c | 6 ------
2 files changed, 9 insertions(+), 15 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list