PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwcollection_count_vertices()

uint32_t lwcollection_count_vertices ( LWCOLLECTION col)

Definition at line 507 of file lwcollection.c.

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

Referenced by lwgeom_count_vertices().

508 {
509  uint32_t i = 0;
510  uint32_t v = 0; /* vertices */
511  assert(col);
512  for ( i = 0; i < col->ngeoms; i++ )
513  {
514  v += lwgeom_count_vertices(col->geoms[i]);
515  }
516  return v;
517 }
uint32_t ngeoms
Definition: liblwgeom.h:506
unsigned int uint32_t
Definition: uthash.h:78
LWGEOM ** geoms
Definition: liblwgeom.h:508
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1234
Here is the call graph for this function:
Here is the caller graph for this function: