PostGIS  2.3.6-r@@SVN_REVISION@@
int lwpoly_count_vertices ( LWPOLY poly)

Definition at line 410 of file lwpoly.c.

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

Referenced by lwgeom_count_vertices().

411 {
412  int i = 0;
413  int v = 0; /* vertices */
414  assert(poly);
415  for ( i = 0; i < poly->nrings; i ++ )
416  {
417  v += poly->rings[i]->npoints;
418  }
419  return v;
420 }
int npoints
Definition: liblwgeom.h:370
POINTARRAY ** rings
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454

Here is the caller graph for this function: