880{
881#if POSTGIS_GEOS_VERSION < 31100
882
883 lwpgerror("The GEOS version this PostGIS binary "
884 "was compiled against (%d) doesn't support "
885 "'GEOSConcaveHull' function (3.11.0+ required)",
887 PG_RETURN_NULL();
888
889#else
891 double ratio = PG_GETARG_FLOAT8(1);
892 bool allow_holes = PG_GETARG_BOOL(2);
893
897
900 PG_FREE_IF_COPY(geom, 0);
901 PG_RETURN_POINTER(
result);
902#endif
903}
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