[postgis-tickets] [SCM] PostGIS branch master updated. 3.4.0beta1-73-gd42235a60

git at osgeo.org git at osgeo.org
Thu Jul 27 11:34:52 PDT 2023


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  d42235a6066343cad2b633a3ccb37f79b07fb488 (commit)
      from  45d1967b73a989e748ce4be30a858f7667c9e04c (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 d42235a6066343cad2b633a3ccb37f79b07fb488
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Jul 27 11:34:48 2023 -0700

    Add cunit version of test for #5448

diff --git a/liblwgeom/cunit/cu_algorithm.c b/liblwgeom/cunit/cu_algorithm.c
index 67f3822a5..44e2187d0 100644
--- a/liblwgeom/cunit/cu_algorithm.c
+++ b/liblwgeom/cunit/cu_algorithm.c
@@ -1167,6 +1167,14 @@ static void test_lwgeom_remove_repeated_points(void)
 	char *ewkt_exp;
 	int modified = LW_FALSE;
 
+	g = lwgeom_from_wkt("LINESTRING(0 0,1 1,1 1,1 1,1.707 1.707)", LW_PARSER_CHECK_NONE);
+	modified = lwgeom_remove_repeated_points_in_place(g, 0.001);
+	ASSERT_INT_EQUAL(modified, LW_TRUE);
+	ewkt = lwgeom_to_ewkt(g);
+	ASSERT_STRING_EQUAL(ewkt, "LINESTRING(0 0,1 1,1.707 1.707)");
+	lwgeom_free(g);
+	lwfree(ewkt);
+
 	g = lwgeom_from_wkt("MULTIPOINT(0 0, 10 0, 10 10, 10 10, 0 10, 0 10, 0 10, 0 0, 0 0, 0 0, 5 5, 0 0, 5 5)", LW_PARSER_CHECK_NONE);
 	modified = lwgeom_remove_repeated_points_in_place(g, 1);
 	ASSERT_INT_EQUAL(modified, LW_TRUE);

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

Summary of changes:
 liblwgeom/cunit/cu_algorithm.c | 8 ++++++++
 1 file changed, 8 insertions(+)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list