PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwcollection_count_vertices ( LWCOLLECTION col)

Definition at line 484 of file lwcollection.c.

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

Referenced by lwgeom_count_vertices().

485 {
486  int i = 0;
487  int v = 0; /* vertices */
488  assert(col);
489  for ( i = 0; i < col->ngeoms; i++ )
490  {
491  v += lwgeom_count_vertices(col->geoms[i]);
492  }
493  return v;
494 }
LWGEOM ** geoms
Definition: liblwgeom.h:465
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1072

Here is the call graph for this function:

Here is the caller graph for this function: