PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoly_count_vertices()

int lwpoly_count_vertices ( LWPOLY poly)

Definition at line 339 of file lwpoly.c.

References POINTARRAY::npoints, LWPOLY::nrings, and LWPOLY::rings.

Referenced by lwgeom_count_vertices().

340 {
341  int i = 0;
342  int v = 0; /* vertices */
343  assert(poly);
344  for ( i = 0; i < poly->nrings; i ++ )
345  {
346  v += poly->rings[i]->npoints;
347  }
348  return v;
349 }
int npoints
Definition: liblwgeom.h:355
POINTARRAY ** rings
Definition: liblwgeom.h:441
int nrings
Definition: liblwgeom.h:439
Here is the caller graph for this function: