[SCM] PostGIS branch stable-3.3 updated. 3.3.5-27-gad529a7f4

git at osgeo.org git at osgeo.org
Tue Jan 23 13:59:56 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  ad529a7f49f7a589d5bdc1abf872ba59a8f3aeb3 (commit)
      from  66b10e52db4622d647f95aff507b124598fdf15e (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 ad529a7f49f7a589d5bdc1abf872ba59a8f3aeb3
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Jan 23 13:59:42 2024 -0800

    Do full ring check always in line/poly maxdist mode, references #5639

diff --git a/NEWS b/NEWS
index ee794b3d3..bbe586a2d 100644
--- a/NEWS
+++ b/NEWS
@@ -19,6 +19,7 @@ Proj 6.1+, and PostgreSQL 15+.
  - Logic error in ST_Covers(geography) (Paul Ramsey)
  - #5646, Crash on collections with empty members (Paul Ramsey)
  - #5580, Handle empty collection components in 3d distance (Paul Ramsey)
+ - #5639, ST_DFullyWithin line/poly error case (Paul Ramsey)
 
 
 PostGIS 3.3.5
diff --git a/liblwgeom/measures.c b/liblwgeom/measures.c
index 2484e9d16..ac2ddac46 100644
--- a/liblwgeom/measures.c
+++ b/liblwgeom/measures.c
@@ -742,7 +742,7 @@ lw_dist2d_line_poly(LWLINE *line, LWPOLY *poly, DISTPTS *dl)
 	const POINT2D *pt = getPoint2d_cp(pa, 0);
 
 	/* Line has a pount outside poly. Check distance to outer ring only. */
-	if (ptarray_contains_point(poly->rings[0], pt) == LW_OUTSIDE)
+	if (ptarray_contains_point(poly->rings[0], pt) == LW_OUTSIDE || dl->mode == DIST_MAX)
 		return lw_dist2d_ptarray_ptarray(pa, poly->rings[0], dl);
 
 	for (uint32_t i = 1; i < poly->nrings; i++)

-----------------------------------------------------------------------

Summary of changes:
 NEWS                 | 1 +
 liblwgeom/measures.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list