Count rings in an LWGEOM.
Count the total number of rings in any LWGEOM.
Definition at line 1419 of file lwgeom.c.
1420{
1422
1423
1425 return 0;
1426
1428 {
1437 break;
1440 break;
1443 break;
1446 break;
1452 {
1454 uint32_t i = 0;
1455 for( i = 0; i < col->
ngeoms; i++ )
1457 break;
1458 }
1459 default:
1461 break;
1462 }
1465}
char result[OUT_DOUBLE_BUFFER_SIZE]
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.
#define POLYHEDRALSURFACETYPE
uint32_t lwgeom_count_rings(const LWGEOM *geom)
Count rings in an LWGEOM.
#define LWDEBUGF(level, msg,...)
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, CURVEPOLYTYPE, LWCOLLECTION::geoms, LINETYPE, LWDEBUGF, lwerror(), lwgeom_count_rings(), lwgeom_is_empty(), lwtype_name(), MULTICURVETYPE, MULTILINETYPE, MULTIPOINTTYPE, MULTIPOLYGONTYPE, MULTISURFACETYPE, LWCOLLECTION::ngeoms, POINTTYPE, POLYGONTYPE, POLYHEDRALSURFACETYPE, result, TINTYPE, TRIANGLETYPE, and LWGEOM::type.
Referenced by itree_num_rings(), lwgeom_count_rings(), and LWGEOM_nrings().