PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwcollection_count_vertices()

uint32_t lwcollection_count_vertices ( const LWCOLLECTION col)

Definition at line 500 of file lwcollection.c.

501 {
502  uint32_t i = 0;
503  uint32_t v = 0; /* vertices */
504  assert(col);
505  for ( i = 0; i < col->ngeoms; i++ )
506  {
507  v += lwgeom_count_vertices(col->geoms[i]);
508  }
509  return v;
510 }
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1246
uint32_t ngeoms
Definition: liblwgeom.h:580
LWGEOM ** geoms
Definition: liblwgeom.h:575

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: