PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoly_count_vertices()

int lwpoly_count_vertices ( LWPOLY poly)

Definition at line 452 of file lwpoly.c.

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

Referenced by lwgeom_count_vertices().

453 {
454  int i = 0;
455  int v = 0; /* vertices */
456  assert(poly);
457  for ( i = 0; i < poly->nrings; i ++ )
458  {
459  v += poly->rings[i]->npoints;
460  }
461  return v;
462 }
int npoints
Definition: liblwgeom.h:371
POINTARRAY ** rings
Definition: liblwgeom.h:457
int nrings
Definition: liblwgeom.h:455
Here is the caller graph for this function: