[SCM] PostGIS branch stable-3.5 updated. 3.5.4-13-g815ad5037
git at osgeo.org
git at osgeo.org
Wed Jan 14 06:40:57 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.5 has been updated
via 815ad50377488ef366470696d15e2a9e9e923080 (commit)
from 3ec8542a9ca9b3a6edcb662731108e22f1779b91 (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 815ad50377488ef366470696d15e2a9e9e923080
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.5 branch (3.5.5dev)
This is partially reverting 3ec8542a9ca9b3a6edcb662731108e22f1779b91
diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c
index ad0150e20..56ce3e5ba 100644
--- a/liblwgeom/lwalgorithm.c
+++ b/liblwgeom/lwalgorithm.c
@@ -31,33 +31,33 @@
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
p3dz_same(const POINT3DZ *p1, const POINT3DZ *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 7a5cf234a..2369bff18 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -768,12 +768,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 | 24 ++++++++++++------------
liblwgeom/ptarray.c | 6 ------
2 files changed, 12 insertions(+), 18 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list