[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-208-gc273a6f

git at osgeo.org git at osgeo.org
Sun Jun 13 20:59:07 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, master has been updated
       via  c273a6fe904232538c533dacba15140013bd8bfb (commit)
      from  296e1bfdb6a4b542cc1b3a7e6f28c7d53a0a9fd8 (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 c273a6fe904232538c533dacba15140013bd8bfb
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Jun 13 23:59:02 2021 -0400

    normalize output repeated points - Closes #4928 for PostGIS 3.2.0

diff --git a/liblwgeom/cunit/cu_algorithm.c b/liblwgeom/cunit/cu_algorithm.c
index dbdbf76..e6c16b3 100644
--- a/liblwgeom/cunit/cu_algorithm.c
+++ b/liblwgeom/cunit/cu_algorithm.c
@@ -1170,9 +1170,11 @@ static void test_lwgeom_remove_repeated_points(void)
 	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);
-	ewkt = lwgeom_to_ewkt(g);
-	ASSERT_STRING_EQUAL(ewkt, "MULTIPOINT(0 0,0 10,5 5,10 0,10 10)");
+	gn = lwgeom_normalize(g);
+	ewkt = lwgeom_to_ewkt(gn);
+	ASSERT_STRING_EQUAL(ewkt, "MULTIPOINT(10 10,10 0,5 5,0 10,0 0)");
 	lwgeom_free(g);
+	lwgeom_free(gn);
 	lwfree(ewkt);
 
 	g = lwgeom_from_wkt("LINESTRING(1612830.15445 4841287.12672,1612830.15824 4841287.12674,1612829.98813 4841274.56198)", LW_PARSER_CHECK_NONE);

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

Summary of changes:
 liblwgeom/cunit/cu_algorithm.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list