[SCM] PostGIS branch master updated. 3.4.0rc1-898-ga4909b145

git at osgeo.org git at osgeo.org
Tue Jan 23 13:57:25 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, master has been updated
       via  a4909b145317932b05e7ebb9f55df127de965982 (commit)
      from  81381c6e5d313d6888bd3a880ddaef99783a0062 (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 a4909b145317932b05e7ebb9f55df127de965982
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Jan 23 13:57:05 2024 -0800

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

diff --git a/liblwgeom/measures.c b/liblwgeom/measures.c
index b22b2cca1..733170450 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:
 liblwgeom/measures.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list