Definition at line 2152 of file lwgeom.c.
2156 switch ( geom->type )
2178 if (!ply->
rings)
return;
2187 for (i = 0; i < ply->
nrings; i++)
2197 for (i = 1; i < ply->
nrings; i++)
2205 ply->
rings[j++] = pa;
2225 if (!col->
geoms)
return;
2226 for (i = 0; i < col->
ngeoms; i++)
2237 col->
geoms[j++] = g;
2244 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)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
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.
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().