Definition at line 642 of file lwpoly.c.
References LWDEBUGF, lwerror(), lwgeom_has_m(), lwgeom_has_z(), lwpoly_add_ring(), lwpoly_construct_empty(), lwpoly_free(), POINTARRAY::npoints, LWPOLY::nrings, ptarray_free(), ptarray_grid(), LWPOLY::srid, gridspec_t::xsize, and gridspec_t::ysize.
Referenced by lwgeom_grid().
654 double minvisiblearea = grid->
xsize * grid->
ysize;
657 LWDEBUGF(3,
"lwpoly_grid: applying grid to polygon with %d rings", poly->
nrings);
661 for (ri=0; ri<poly->nrings; ri++)
673 LWDEBUGF(3,
"grid_polygon3d: ring%d skipped ( <4 pts )", ri);
681 lwerror(
"lwpoly_grid, memory error");
686 LWDEBUGF(3,
"lwpoly_grid: simplified polygon with %d rings", opoly->
nrings);
void ptarray_free(POINTARRAY *pa)
int lwpoly_add_ring(LWPOLY *poly, POINTARRAY *pa)
Add a ring to a polygon.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
LWPOLY * lwpoly_construct_empty(int srid, char hasz, char hasm)
void lwpoly_free(LWPOLY *poly)
POINTARRAY * ptarray_grid(const POINTARRAY *pa, const gridspec *grid)
#define LWDEBUGF(level, msg,...)
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.