PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcollection_count_vertices()

int lwcollection_count_vertices ( LWCOLLECTION col)

Definition at line 514 of file lwcollection.c.

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

Referenced by lwgeom_count_vertices().

515 {
516  int i = 0;
517  int v = 0; /* vertices */
518  assert(col);
519  for ( i = 0; i < col->ngeoms; i++ )
520  {
521  v += lwgeom_count_vertices(col->geoms[i]);
522  }
523  return v;
524 }
LWGEOM ** geoms
Definition: liblwgeom.h:509
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
Definition: lwgeom.c:1189
Here is the call graph for this function:
Here is the caller graph for this function: