[SCM] PostGIS branch stable-3.2 updated. 3.2.7-59-g8d8651f82
git at osgeo.org
git at osgeo.org
Wed Jan 14 07:08:27 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.2 has been updated
via 8d8651f823b5799f1385acf121de39261d5032dd (commit)
from 79c591a8af5a19bb3b81c7f5ddbc540529c4086e (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 8d8651f823b5799f1385acf121de39261d5032dd
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Jan 14 15:01:14 2026 +0100
Stop using a tolerance for point-same functions
Closes #6023 again in 3.2 branch (3.2.9dev)
This is partially reverts previous commit
diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c
index a9f68f084..3cf3a7d33 100644
--- a/liblwgeom/lwalgorithm.c
+++ b/liblwgeom/lwalgorithm.c
@@ -31,26 +31,25 @@
int
p4d_same(const POINT4D *p1, const POINT4D *p2)
{
- if( 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 LW_TRUE;
- else
- return LW_FALSE;
+ 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)
{
- if( FP_EQUALS(p1->x,p2->x) && FP_EQUALS(p1->y,p2->y) && FP_EQUALS(p1->z,p2->z) )
- return LW_TRUE;
- else
- return LW_FALSE;
+ 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 4d822fb98..e106d2372 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -759,12 +759,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 | 19 +++++++++----------
liblwgeom/ptarray.c | 6 ------
2 files changed, 9 insertions(+), 16 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list