Definition at line 1664 of file liblwgeom/lwgeom_geos.c.
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.
References area(), LWMPOINT::geoms, LWMPOLY::geoms, lwerror(), lwfree(), lwgeom_area(), lwgeom_get_type(), lwgeom_is_empty(), lwgeom_release(), lwmpoint_add_lwpoint(), lwpoly_area(), lwpoly_to_points(), MULTIPOLYGONTYPE, LWMPOINT::ngeoms, and LWMPOLY::ngeoms.
Referenced by lwgeom_to_points().