[postgis-tickets] r15775 - ST_ConcaveHull fix for EXtenriorRing is not a polygon
Regina Obe
lr at pcorp.us
Tue Sep 19 17:12:52 PDT 2017
Author: robe
Date: 2017-09-19 17:12:52 -0700 (Tue, 19 Sep 2017)
New Revision: 15775
Modified:
trunk/postgis/postgis.sql.in
Log:
ST_ConcaveHull fix for EXtenriorRing is not a polygon
References #2836 for PostGIS 2.4.0
Modified: trunk/postgis/postgis.sql.in
===================================================================
--- trunk/postgis/postgis.sql.in 2017-09-20 00:04:51 UTC (rev 15774)
+++ trunk/postgis/postgis.sql.in 2017-09-20 00:12:52 UTC (rev 15775)
@@ -5870,8 +5870,10 @@
var_tempgeom := @extschema at .ST_ForceSFS(@extschema at .ST_Intersection(var_tempgeom, var_convhull));
IF param_allow_holes THEN
var_param_geom := var_tempgeom;
+ ELSIF @extschema at .ST_GeometryType(var_tempgeom) = 'ST_Polygon' THEN
+ var_param_geom := @extschema at .ST_MakePolygon(@extschema at .ST_ExteriorRing(var_tempgeom));
ELSE
- var_param_geom := @extschema at .ST_MakePolygon(@extschema at .ST_ExteriorRing(var_tempgeom));
+ var_param_geom := @extschema at .ST_ConvexHull(var_param_geom);
END IF;
return var_param_geom;
ELSIF @extschema at .ST_IsValid(var_tempgeom) THEN
More information about the postgis-tickets
mailing list