PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwpoly_count_vertices()

uint32_t lwpoly_count_vertices ( const LWPOLY poly)

Definition at line 418 of file lwpoly.c.

419 {
420  uint32_t i = 0;
421  uint32_t v = 0; /* vertices */
422  assert(poly);
423  for ( i = 0; i < poly->nrings; i ++ )
424  {
425  v += poly->rings[i]->npoints;
426  }
427  return v;
428 }
POINTARRAY ** rings
Definition: liblwgeom.h:519
uint32_t nrings
Definition: liblwgeom.h:524
uint32_t npoints
Definition: liblwgeom.h:427

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

Referenced by lwgeom_count_vertices().

Here is the caller graph for this function: