1673 lwerror(
"%s: only multipolygons supported", __func__);
1680 for (i = 0; i < lwmpoly->ngeoms; i++)
1683 int sub_npoints = lround(npoints * sub_area /
area);
1684 if (sub_npoints > 0)
1692 for (j = 0; j < sub_mpt->
ngeoms; j++)
LWMPOINT * lwpoly_to_points(const LWPOLY *lwpoly, uint32_t npoints)
uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
LWMPOINT * lwmpoint_add_lwpoint(LWMPOINT *mobj, const LWPOINT *obj)
double lwgeom_area(const LWGEOM *geom)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
void lwgeom_release(LWGEOM *lwgeom)
Free the containing LWGEOM and the associated BOX.
double lwpoly_area(const LWPOLY *poly)
Find the area of the outer ring - sum (area of inner rings).
Datum area(PG_FUNCTION_ARGS)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.