PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwcollection_count_vertices()

int lwcollection_count_vertices ( LWCOLLECTION col)

Definition at line 494 of file lwcollection.c.

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

Referenced by lwgeom_count_vertices().

495 {
496  int i = 0;
497  int v = 0; /* vertices */
498  assert(col);
499  for ( i = 0; i < col->ngeoms; i++ )
500  {
501  v += lwgeom_count_vertices(col->geoms[i]);
502  }
503  return v;
504 }
LWGEOM ** geoms
Definition: liblwgeom.h:493
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1140
Here is the call graph for this function:
Here is the caller graph for this function: