Definition at line 1872 of file liblwgeom/lwgeom_geos.c.
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().
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.