[postgis-tickets] [SCM] PostGIS branch stable-3.1 updated. 3.1.5-23-g6a490715a

git at osgeo.org git at osgeo.org
Sun Jun 26 14:11:22 PDT 2022


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.1 has been updated
       via  6a490715af54f1c41089f29a20f78da541e66e99 (commit)
      from  bbb4d0804a4fb5293aaf1b191415c2a128cfe7d1 (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 6a490715af54f1c41089f29a20f78da541e66e99
Author: Regina Obe <lr at pcorp.us>
Date:   Sun Jun 26 17:11:15 2022 -0400

    ST_ConcaveHull geometry collection issue. Closes #4541 for PostGIS 3.1.6

diff --git a/NEWS b/NEWS
index 1051d7336..1eda07872 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,8 @@ PostGIS 3.1.6dev
   - #5125, Fix search path function (Sandro Santilli)
   - #5155, More schema qual fixes (Regina Obe)
   - #5114, Crash with long column names in pgsql2shp (Paul Ramsey)
+  - #4541, ST_ConcaveHull returns a "geometrycollection" type
+           instead of the expected "polygon" (Regina Obe)
 
 
 PostGIS 3.1.5
diff --git a/postgis/postgis.sql.in b/postgis/postgis.sql.in
index 6032de066..b9dca1845 100644
--- a/postgis/postgis.sql.in
+++ b/postgis/postgis.sql.in
@@ -6348,6 +6348,7 @@ $$
 LANGUAGE 'plpgsql' IMMUTABLE STRICT PARALLEL SAFE _COST_HIGH;
 
 -- Availability: 2.0.0
+-- Changed: 3.1.6
 -- Changed: 2.5.0
 CREATE OR REPLACE FUNCTION ST_ConcaveHull(param_geom geometry, param_pctconvex float, param_allow_holes boolean DEFAULT false) RETURNS geometry AS
 $$
@@ -6380,7 +6381,7 @@ $$
 				RETURN var_resultgeom;
 			END IF;
 		END IF;
-		IF @extschema at .ST_Dimension(var_resultgeom) > 1 AND param_pctconvex BETWEEN 0 and 0.98 THEN
+		IF @extschema at .ST_Dimension(var_resultgeom) > 1 AND param_pctconvex BETWEEN 0 and 0.99 THEN
 		-- get linestring that forms envelope of geometry
 			var_enline := @extschema at .ST_Boundary(@extschema at .ST_Envelope(var_param_geom));
 			var_buf := @extschema at .ST_Length(var_enline)/1000.0;

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

Summary of changes:
 NEWS                   | 2 ++
 postgis/postgis.sql.in | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list