PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwcollection_count_vertices()

uint32_t lwcollection_count_vertices ( LWCOLLECTION col)

Definition at line 510 of file lwcollection.c.

511{
512 uint32_t i = 0;
513 uint32_t v = 0; /* vertices */
514 assert(col);
515 for ( i = 0; i < col->ngeoms; i++ )
516 {
517 v += lwgeom_count_vertices(col->geoms[i]);
518 }
519 return v;
520}
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition lwgeom.c:1229
uint32_t ngeoms
Definition liblwgeom.h:566
LWGEOM ** geoms
Definition liblwgeom.h:561

References LWCOLLECTION::geoms, lwgeom_count_vertices(), and LWCOLLECTION::ngeoms.

Referenced by lwgeom_count_vertices().

Here is the call graph for this function:
Here is the caller graph for this function: