[SCM] PostGIS branch stable-3.3 updated. 3.3.7-66-g5e9e9bbfc
git at osgeo.org
git at osgeo.org
Wed Jan 14 07:00:38 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.3 has been updated
via 5e9e9bbfcdd2f9857608580aaa6087cc0fa65006 (commit)
from 29d977fa49f899bfe6533bd2fe8b14a13b1313d3 (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 5e9e9bbfcdd2f9857608580aaa6087cc0fa65006
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 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