971 #if POSTGIS_GEOS_VERSION < 31100
973 lwpgerror(
"The GEOS version this PostGIS binary "
974 "was compiled against (%d) doesn't support "
975 "'ST_SimplifyPolygonHull' function (3.11.0+ required)",
981 double vertex_fraction = PG_GETARG_FLOAT8(1);
982 uint32_t is_outer = PG_GETARG_BOOL(2);
990 PG_FREE_IF_COPY(geom, 0);
991 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_simplify_polygonal(const LWGEOM *geom, double vertex_fraction, uint32_t is_outer)
Computes a boundary-respecting hull of a polygonal geometry, with hull shape determined by a target p...
#define POSTGIS_GEOS_VERSION