[SCM] PostGIS branch stable-3.3 updated. 3.3.6-8-g5c276bc0c
git at osgeo.org
git at osgeo.org
Thu Feb 29 08:34:11 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.3 has been updated
via 5c276bc0cd64c159c07ab8b6c0bcb9d5ea37815f (commit)
from 2e3c331a395d14867bfeda42f7ce419f167161d3 (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 5c276bc0cd64c159c07ab8b6c0bcb9d5ea37815f
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Feb 29 08:34:07 2024 -0800
ST_3DDistance error for shared first point, references #5589
diff --git a/NEWS b/NEWS
index 9a9c8c3ff..5f139d44e 100644
--- a/NEWS
+++ b/NEWS
@@ -9,6 +9,7 @@ xxxx/xx/xx
(Sandro Santilli, Loïc Bartoletti)
- #5680, Fix populate_topology_layer with standard_conforming_strings
set to off (Sandro Santilli)
+ - #5589, ST_3DDistance error for shared first point (Paul Ramsey)
PostGIS 3.3.6
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