Definition at line 2144 of file lwgeom.c.
2148 switch ( geom->
type )
2170 if (!ply->
rings)
return;
2179 for (i = 0; i < ply->
nrings; i++)
2189 for (i = 1; i < ply->
nrings; i++)
2197 ply->
rings[j++] = pa;
2217 if (!col->
geoms)
return;
2218 for (i = 0; i < col->
ngeoms; i++)
2229 col->
geoms[j++] = g;
2236 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(), and mvt_grid_and_validate_geos().