[SCM] PostGIS branch master updated. 3.6.0rc2-282-g57956afa2
git at osgeo.org
git at osgeo.org
Wed Jan 14 06:02:04 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, master has been updated
via 57956afa20f14379bed6bfffd630e56ed15743d8 (commit)
from 17d0890cc6d156c7e3e482c3c02b221184f3a027 (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 57956afa20f14379bed6bfffd630e56ed15743d8
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
This is partially reverting 3a6b9e454c1ce9a53f14ad87fefcf8cf2ee1ad33
diff --git a/liblwgeom/lwalgorithm.c b/liblwgeom/lwalgorithm.c
index 1ab3d74a6..0a467dfb6 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 9a73230f8..cce30d5b2 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