[postgis-tickets] [SCM] PostGIS branch stable-3.0 updated. 3.0.3-12-gd99d43a

git at osgeo.org git at osgeo.org
Wed Feb 17 19:01:02 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, stable-3.0 has been updated
       via  d99d43af1a5787605c0ef56979aa94e0f69be3eb (commit)
       via  697270f4ceb961796cee5a9124878a1bd56bc9df (commit)
      from  d6323743867da17c0fc94da397498f99521e9155 (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 d99d43af1a5787605c0ef56979aa94e0f69be3eb
Author: Daniel Baston <dbaston at gmail.com>
Date:   Wed Feb 17 22:00:45 2021 -0500

    NEWS update for #4853, fix previous entries

diff --git a/NEWS b/NEWS
index 0bcb7e4..f19e627 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,11 @@
+PostGIS 3.04
+2021/xx/xx
+
+  - #4817, Handle complex compound coordinate systems (Paul Ramsey)
+  - Support newer proj versions that have deprecated pj_get_release (Paul Ramsey)
+  - #4835, Adjust geodetic tolerance for calculations (Paul Ramsey)
+  - #4853, DBSCAN cluster not formed when recordset length equal to minPoints (Dan Baston)
+
 PostGIS 3.0.3
 2020/11/20
 
@@ -13,9 +21,6 @@ PostGIS 3.0.3
   - #4748, Fix incorrect axis swapping in polar stereographic (Paul Ramsey)
   - #4727, Fix bug in geocentrix box computation (Paul Ramsey)
   - #4790, Fix ST_3dintersects calculations with identical vertices (Nicklas Avén)
-  - #4817, Handle complex compound coordinate systems (Paul Ramsey)
-  - Support newer proj versions that have deprecated pj_get_release (Paul Ramsey)
-  - #4835, Adjust geodetic tolerance for calculations (Paul Ramsey)
 
 PostGIS 3.0.2
 2020/08/15

commit 697270f4ceb961796cee5a9124878a1bd56bc9df
Author: Daniel Baston <dbaston at gmail.com>
Date:   Wed Feb 17 20:34:04 2021 -0500

    Allow DBSCAN cluster to form when recordset length = minPoints
    
    Fixes #4853

diff --git a/liblwgeom/lwgeom_geos_cluster.c b/liblwgeom/lwgeom_geos_cluster.c
index 76c707f..2438663 100644
--- a/liblwgeom/lwgeom_geos_cluster.c
+++ b/liblwgeom/lwgeom_geos_cluster.c
@@ -401,7 +401,7 @@ union_dbscan_general(LWGEOM** geoms, uint32_t num_geoms, UNIONFIND* uf, double e
 		*in_a_cluster_ret = in_a_cluster;
 
 	/* Bail if we don't even have enough inputs to make a cluster. */
-	if (num_geoms <= min_points)
+	if (num_geoms < min_points)
 	{
 		if (!in_a_cluster_ret)
 			lwfree(in_a_cluster);
diff --git a/regress/core/tickets.sql b/regress/core/tickets.sql
index 3e287b2..78a9107 100644
--- a/regress/core/tickets.sql
+++ b/regress/core/tickets.sql
@@ -1301,3 +1301,4 @@ SELECT '#4689', _ST_DistanceTree('POLYGON ((30 10, 40 40, 20 40, 30 10))'::geogr
 SELECT '#4727', _ST_DistanceTree('SRID=4326;POLYGON((-179.9 -85.05112877980659, -179.9 74.99999999999997, -152 80, -130 84.99999999999997, -115 85.05112877980659, -60 85.05112877980659, -60 79, -70 70, -130 50, -80 6, -65 -53, -100 -85.05112877980659, -179.9 -85.05112877980659))'::geography,
 				ST_MakePoint(-150,-40), 0.0, true);
 
+SELECT '#4853', ST_ClusterDBSCAN(geom,  eps := 0.000906495804256269, minpoints := 4) OVER() AS cid FROM (VALUES ('0101000020E6100000E4141DC9E5934B40D235936FB6193940'::geometry), ('0101000020E6100000C746205ED7934B40191C25AFCE193940'::geometry), ('0101000020E6100000C780ECF5EE934B40B6BE4868CB193940'::geometry), ('0101000020E6100000ABB2EF8AE0934B404451A04FE4193940'::geometry)) AS t(geom);
diff --git a/regress/core/tickets_expected b/regress/core/tickets_expected
index 62f8651..21b3fb2 100644
--- a/regress/core/tickets_expected
+++ b/regress/core/tickets_expected
@@ -435,3 +435,7 @@ ERROR:  BOX2D_construct: args can not be empty points
 ERROR:  LWGEOM_addpoint: Invalid offset
 #4689|0
 #4727|0
+#4853|0
+#4853|0
+#4853|0
+#4853|0

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

Summary of changes:
 NEWS                            | 11 ++++++++---
 liblwgeom/lwgeom_geos_cluster.c |  2 +-
 regress/core/tickets.sql        |  1 +
 regress/core/tickets_expected   |  4 ++++
 4 files changed, 14 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list