[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha1-41-g3e1ea07

git at osgeo.org git at osgeo.org
Fri Mar 13 09:10:09 PDT 2020


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  3e1ea07b09d893c63b819b6290cd7d91cba01d16 (commit)
      from  ec43bd2afd3071bc677691ee5f2ae6dc33a47555 (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 3e1ea07b09d893c63b819b6290cd7d91cba01d16
Author: Raúl Marín <git at rmr.ninja>
Date:   Thu Mar 12 18:18:16 2020 +0100

    ST_Simplify: Don't copy if nothing is removed
    
    Closes #4651
    Closes https://github.com/postgis/postgis/pull/548

diff --git a/NEWS b/NEWS
index 1442f20..184a1ef 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,20 @@
+PostGIS 3.1.0XXXX
+2020/XX/XX
+
+Only tickets not included in 3.1.0alpha1
+
+* Breaking changes *
+  -
+
+* New features *
+  -
+
+* Enhancements *
+  - #4651: ST_Simplify: Don't copy if nothing is removed
+
+* Bug fixes *
+  -
+
 PostGIS 3.1.0alpha1
 2020/02/01
 
diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index 3e95cec..f13911d 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -1692,7 +1692,7 @@ ptarray_simplify_in_place(POINTARRAY *pa, double tolerance, uint32_t minpts)
 		       pa->serialized_pointlist + pt_size * (pa->npoints - 1),
 		       pt_size);
 	}
-	else
+	else if (pa->npoints != keptn) /* We don't need to move any points if we are keeping them all */
 	{
 		for (uint32_t i = 1; i < pa->npoints; i++)
 		{

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

Summary of changes:
 NEWS                | 17 +++++++++++++++++
 liblwgeom/ptarray.c |  2 +-
 2 files changed, 18 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list