909 #if POSTGIS_GEOS_VERSION < 31100
911 lwpgerror(
"The GEOS version this PostGIS binary "
912 "was compiled against (%d) doesn't support "
913 "'ST_SimplifyPolygonHull' function (3.11.0+ required)",
919 double vertex_fraction = PG_GETARG_FLOAT8(1);
920 uint32_t is_outer = PG_GETARG_BOOL(2);
928 PG_FREE_IF_COPY(geom, 0);
929 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