Definition at line 2143 of file lwgeom.c.
2147 switch ( geom->
type )
2169 if (!ply->
rings)
return;
2178 for (i = 0; i < ply->
nrings; i++)
2188 for (i = 1; i < ply->
nrings; i++)
2196 ply->
rings[j++] = pa;
2216 if (!col->
geoms)
return;
2217 for (i = 0; i < col->
ngeoms; i++)
2228 col->
geoms[j++] = g;
2235 lwerror(
"%s: Unsupported geometry type: %s", __func__,
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
void ptarray_free(POINTARRAY *pa)
void ptarray_grid_in_place(POINTARRAY *pa, const gridspec *grid)
Snap to grid.
void lwgeom_free(LWGEOM *lwgeom)
void lwgeom_grid_in_place(LWGEOM *geom, const gridspec *grid)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
References CIRCSTRINGTYPE, COLLECTIONTYPE, COMPOUNDTYPE, LWCOLLECTION::geoms, LINETYPE, lwerror(), lwgeom_free(), lwgeom_grid_in_place(), lwgeom_is_empty(), lwtype_name(), MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, LWCOLLECTION::ngeoms, POINTARRAY::npoints, LWPOLY::nrings, LWPOINT::point, LWLINE::points, POINTTYPE, POLYGONTYPE, ptarray_free(), ptarray_grid_in_place(), LWPOLY::rings, TINTYPE, TRIANGLETYPE, and LWGEOM::type.
Referenced by do_grid_test(), lwgeom_grid(), lwgeom_grid_in_place(), mvt_geom(), mvt_grid_and_validate_geos(), and test_lwtriangle_clip().