Count rings in an LWGEOM.
Count the total number of rings in any LWGEOM.
Definition at line 1447 of file lwgeom.c.
1448{
1450
1451
1453 return 0;
1454
1456 {
1465 break;
1468 break;
1471 break;
1474 break;
1480 {
1482 uint32_t i = 0;
1483 for( i = 0; i < col->
ngeoms; i++ )
1485 break;
1486 }
1487 default:
1489 break;
1490 }
1493}
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().