943 #if POSTGIS_GEOS_VERSION < 31100
945 lwpgerror(
"The GEOS version this PostGIS binary "
946 "was compiled against (%d) doesn't support "
947 "'GEOSConcaveHull' function (3.11.0+ required)",
953 double ratio = PG_GETARG_FLOAT8(1);
954 bool allow_holes = PG_GETARG_BOOL(2);
962 PG_FREE_IF_COPY(geom, 0);
963 PG_RETURN_POINTER(
result);
char result[OUT_DOUBLE_BUFFER_SIZE]
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_concavehull(const LWGEOM *geom, double ratio, uint32_t allow_holes)
Take a geometry and build the concave hull.
#define POSTGIS_GEOS_VERSION