PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcollection_count_vertices()

uint32_t lwcollection_count_vertices ( LWCOLLECTION col)

Definition at line 521 of file lwcollection.c.

522 {
523  uint32_t i = 0;
524  uint32_t v = 0; /* vertices */
525  assert(col);
526  for ( i = 0; i < col->ngeoms; i++ )
527  {
528  v += lwgeom_count_vertices(col->geoms[i]);
529  }
530  return v;
531 }
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1235
uint32_t ngeoms
Definition: liblwgeom.h:510
LWGEOM ** geoms
Definition: liblwgeom.h:512
unsigned int uint32_t
Definition: uthash.h:78

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: