Definition at line 2317 of file lwgeom.c.
2318{
2319 if (!geom) return;
2321
2323
2324 switch ( geom->type )
2325 {
2327 {
2330 return;
2331 }
2335 {
2338
2341 return;
2342 }
2344 {
2346 if (!ply->
rings)
return;
2347
2348
2349 uint32_t i = 0;
2353 {
2354
2355 for (i = 0; i < ply->
nrings; i++)
2356 {
2358 }
2360 return;
2361 }
2362
2363
2364 uint32_t j = 1;
2365 for (i = 1; i < ply->
nrings; i++)
2366 {
2369
2370
2372 {
2373 ply->
rings[j++] = pa;
2374 }
2375 else
2376 {
2378 }
2379 }
2380
2382 return;
2383 }
2390 {
2392 uint32_t i, j = 0;
2393 if (!col->
geoms)
return;
2394 for (i = 0; i < col->
ngeoms; i++)
2395 {
2398
2399
2401 {
2403 continue;
2404 }
2405 col->
geoms[j++] = g;
2406 }
2408 return;
2409 }
2410 default:
2411 {
2412 lwerror(
"%s: Unsupported geometry type: %s", __func__,
2414 return;
2415 }
2416 }
2417}
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().