[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-98-ga39944c
git at osgeo.org
git at osgeo.org
Thu Feb 18 17:24:12 PST 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, master has been updated
via a39944c37f1b1b6efa3e90c6f51f1d9f016d4f53 (commit)
via c2193edf12ecdb0c79a7bb84ab691f0e1d62a516 (commit)
from d17abd3bc43e3ba9521d66d6ea3676c92062734a (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 a39944c37f1b1b6efa3e90c6f51f1d9f016d4f53
Merge: c2193ed d17abd3
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Feb 18 17:24:04 2021 -0800
Merge branch 'master' of https://git.osgeo.org/gitea/postgis/postgis
commit c2193edf12ecdb0c79a7bb84ab691f0e1d62a516
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Feb 18 17:23:56 2021 -0800
Add in test that exercises lw_dist2d_distribute_fast, references #4720
diff --git a/liblwgeom/cunit/cu_measures.c b/liblwgeom/cunit/cu_measures.c
index 8867992..c590fa7 100644
--- a/liblwgeom/cunit/cu_measures.c
+++ b/liblwgeom/cunit/cu_measures.c
@@ -71,7 +71,6 @@ do_test_mindistance_tolerance(char *in1,
distance = distancef(lw1, lw2, 0.0);
lwgeom_free(lw1);
lwgeom_free(lw2);
-
if ( fabs(distance - expected_res) > accepted_error )
{
printf(msg1, distance, expected_res, line);
@@ -88,6 +87,8 @@ static void test_mindistance2d_tolerance(void)
{
double default_accepted_error = 0.00001;
double zero_accepted_error = 0.0;
+
+
/*
** Simple case.
*/
@@ -208,6 +209,12 @@ static void test_mindistance2d_tolerance(void)
*/
DIST2DTEST("LINESTRING(0.5 1,0.5 3)", "MULTICURVE(CIRCULARSTRING(2 3,3 2,2 1,1 2,2 3),(0 0, 0 5))", 0.5, default_accepted_error);
+ /*
+ ** "Fast path" case
+ */
+ DIST2DTEST("LINESTRING(10 0,11 1,12 2,13 3,14 4,15 5,16 6)",
+ "LINESTRING(1 1.5,2 3,3 4.5,4 6,5 7.5,6 9)",
+ 8.3205, default_accepted_error);
}
static void
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/cunit/cu_measures.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list