PostGIS  2.3.7dev-r@@SVN_REVISION@@
int 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  int i = 0;
510  int 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 }
LWGEOM ** geoms
Definition: liblwgeom.h:508
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1153

Here is the call graph for this function:

Here is the caller graph for this function: