[SCM] PostGIS branch stable-3.2 updated. 3.2.7-5-g98d112ff7
git at osgeo.org
git at osgeo.org
Thu Feb 29 08:35:58 PST 2024
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 98d112ff7f17913d35f07300d22f4864ee0bc6b6 (commit)
from bd10d04c5ef7d55e0b7e35f7517da68a87e095f7 (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 98d112ff7f17913d35f07300d22f4864ee0bc6b6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Feb 29 08:35:52 2024 -0800
ST_3DDistance error for shared first point, references #5589
diff --git a/NEWS b/NEWS
index 3d3749616..61a1aebea 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ PostGIS 3.2.8
* Bug Fixes *
- #5677, ST_Union(geom[]) should unary union single entry arrays (Paul Ramsey)
+ - #5589, ST_3DDistance error for shared first point (Paul Ramsey)
PostGIS 3.2.7
diff --git a/liblwgeom/measures3d.c b/liblwgeom/measures3d.c
index 6f2996be5..49889bf31 100644
--- a/liblwgeom/measures3d.c
+++ b/liblwgeom/measures3d.c
@@ -1155,6 +1155,13 @@ lw_dist3d_seg_seg(POINT3DZ *s1p1, POINT3DZ *s1p2, POINT3DZ *s2p1, POINT3DZ *s2p2
dl->twisted = ((dl->twisted) * (-1));
return lw_dist3d_pt_seg(s2p1, s1p1, s1p2, dl);
}
+ /*s2p1 and s1p1 are the same point */
+ if ((s2p1->x == s1p1->x) && (s2p1->y == s1p1->y) && (s2p1->z == s1p1->z))
+ {
+ dl->distance = 0.0;
+ dl->p1 = dl->p2 = *s2p1;
+ return LW_TRUE;
+ }
/*
Here we use algorithm from softsurfer.com
-----------------------------------------------------------------------
Summary of changes:
NEWS | 1 +
liblwgeom/measures3d.c | 7 +++++++
2 files changed, 8 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list