[postgis-tickets] [PostGIS] #4541: ST_ConcaveHull returns a "geometrycollection" type instead of the expected "polygon"

PostGIS trac at osgeo.org
Sun Oct 13 03:21:41 PDT 2019


#4541: ST_ConcaveHull returns a "geometrycollection" type instead of the expected
"polygon"
---------------------+---------------------------
 Reporter:  v89461   |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  blocker  |  Milestone:  PostGIS 2.5.4
Component:  postgis  |    Version:  2.5.x
 Keywords:           |
---------------------+---------------------------
 Ran into an unexpected behaviour of `ST_ConcaveHull` during a migration
 from 2.4 to 2.5.

 The [https://postgis.net/docs/ST_ConcaveHull.html documentation] doesn't
 specify the geometry type it returns but I assume it is a `POLYGON`.


 Using `POSTGIS="2.4.5 r16765" PGSQL="96" GEOS="3.6.3-CAPI-1.10.3 80c13047"
 PROJ="Rel. 4.9.3, 15 August 2016" GDAL="GDAL 1.9.2, released 2012/10/08"
 LIBXML="2.7.6" LIBJSON="0.11" RASTER`

 With the attached `ST_ConcaveHull` query I get a `POLYGON` result, as
 expected.

 Using `POSTGIS="2.5.2 r17328" [EXTENSION] PGSQL="110"
 GEOS="3.7.0-CAPI-1.11.0 673b9939" PROJ="Rel. 5.2.0, September 15th, 2018"
 GDAL="GDAL 2.3.1, released 2018/06/22" LIBXML="2.9.1" LIBJSON="0.12"
 LIBPROTOBUF="1.3.0" RASTER`

 With the attached `ST_ConcaveHull` query I get a strange
 `GEOMETRYCOLLECTION` made of several `POINT` and ending with a `POLYGON`.

 Maybe it is a string length issue because I get a `POLYGON` as expected if
 I remove the first or last point of the query, or if I "round" the values
 by removing the `00000001` floating point approximations.

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4541>
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