PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwpoly_count_vertices ( LWPOLY poly)

Definition at line 334 of file lwpoly.c.

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

Referenced by lwgeom_count_vertices().

335 {
336  int i = 0;
337  int v = 0; /* vertices */
338  assert(poly);
339  for ( i = 0; i < poly->nrings; i ++ )
340  {
341  v += poly->rings[i]->npoints;
342  }
343  return v;
344 }
int npoints
Definition: liblwgeom.h:327
POINTARRAY ** rings
Definition: liblwgeom.h:413
int nrings
Definition: liblwgeom.h:411

Here is the caller graph for this function: