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