[postgis-tickets] [SCM] PostGIS branch main updated. 3.2.0alpha1-45-gf09d08e
git at osgeo.org
git at osgeo.org
Wed Sep 29 14:10:52 PDT 2021
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, main has been updated
via f09d08e4356f8d10a0c77545f6415157c6f53257 (commit)
from ce971289084fb1c1437c43bf5da97d42debc84e1 (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 f09d08e4356f8d10a0c77545f6415157c6f53257
Author: Sandro Santilli <strk at kbt.io>
Date: Wed Sep 29 23:04:14 2021 +0200
Avoid testing corner case with closest_segment_2d
Closes #5004
diff --git a/liblwgeom/cunit/cu_ptarray.c b/liblwgeom/cunit/cu_ptarray.c
index d462f51..c5bc7c2 100644
--- a/liblwgeom/cunit/cu_ptarray.c
+++ b/liblwgeom/cunit/cu_ptarray.c
@@ -722,12 +722,13 @@ static void test_ptarray_closest_segment_2d()
lwline_free(line);
/* See https://trac.osgeo.org/postgis/ticket/4990 */
+ /* Test modified to give more stable results */
wkt = "LINESTRING(4 31,7 31,7 34,4 34,4 31)";
line = lwgeom_as_lwline(lwgeom_from_text(wkt));
pa = line->points;
- qp.x = 7.1; qp.y = 31;
+ qp.x = 7.1; qp.y = 31.1;
rv = ptarray_closest_segment_2d(pa, &qp, &dist);
- ASSERT_INT_EQUAL(rv, 0);
+ ASSERT_INT_EQUAL(rv, 1);
lwline_free(line);
}
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/cunit/cu_ptarray.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list