[PostGIS] #5781: Concave Hull returning multi poly with polygons

PostGIS trac at osgeo.org
Mon Sep 23 13:14:20 PDT 2024


#5781: Concave Hull returning multi poly with polygons
---------------------+---------------------------
 Reporter:  latot    |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  medium   |  Milestone:  PostGIS 3.4.4
Component:  postgis  |    Version:  3.4.x
 Keywords:           |
---------------------+---------------------------
 Hi, for some reason, in postgis 3.4 ST_ConcaveHull is returning
 multipolygons.

 select ST_ConcaveHull(
         ST_COLLECT(
                 array[
                         'POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))'::geometry,
                         'POLYGON((10 10, 11 10, 11 11, 10 11, 10
 10))'::geometry
                 ]
         ),
         0
 );

 MULTIPOLYGON(((0 0,1 0,1 1,0 1,0 0)),((10 10,11 10,11 11,10 11,10 10)))

 Well, a collection of polygons is the same to have a multipolygon.

 If there is a point or linestring on the data, it computes the polygons
 right again.

 Thx
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5781>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list