PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwpoly_count_vertices()

int lwpoly_count_vertices ( LWPOLY poly)

Definition at line 412 of file lwpoly.c.

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

Referenced by lwgeom_count_vertices().

413 {
414  int i = 0;
415  int v = 0; /* vertices */
416  assert(poly);
417  for ( i = 0; i < poly->nrings; i ++ )
418  {
419  v += poly->rings[i]->npoints;
420  }
421  return v;
422 }
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: