Definition at line 2289 of file lwgeom.c.
2290{
2291 if (!geom) return;
2293
2295
2296 switch ( geom->type )
2297 {
2299 {
2302 return;
2303 }
2307 {
2310
2313 return;
2314 }
2316 {
2318 if (!ply->
rings)
return;
2319
2320
2321 uint32_t i = 0;
2325 {
2326
2327 for (i = 0; i < ply->
nrings; i++)
2328 {
2330 }
2332 return;
2333 }
2334
2335
2336 uint32_t j = 1;
2337 for (i = 1; i < ply->
nrings; i++)
2338 {
2341
2342
2344 {
2345 ply->
rings[j++] = pa;
2346 }
2347 else
2348 {
2350 }
2351 }
2352
2354 return;
2355 }
2362 {
2364 uint32_t i, j = 0;
2365 if (!col->
geoms)
return;
2366 for (i = 0; i < col->
ngeoms; i++)
2367 {
2370
2371
2373 {
2375 continue;
2376 }
2377 col->
geoms[j++] = g;
2378 }
2380 return;
2381 }
2382 default:
2383 {
2384 lwerror(
"%s: Unsupported geometry type: %s", __func__,
2386 return;
2387 }
2388 }
2389}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
void ptarray_free(POINTARRAY *pa)
void ptarray_grid_in_place(POINTARRAY *pa, gridspec *grid)
Snap to grid.
static void condition_gridspec_scale(gridspec *grid)
void lwgeom_grid_in_place(LWGEOM *geom, gridspec *grid)
void lwgeom_free(LWGEOM *lwgeom)
void void lwerror(const char *fmt,...) __attribute__((format(printf
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, condition_gridspec_scale(), 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_clip_and_validate_geos(), mvt_geom(), and test_lwtriangle_clip().