PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwpoly_count_vertices()

uint32_t lwpoly_count_vertices ( 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:505
uint32_t nrings
Definition: liblwgeom.h:510
uint32_t npoints
Definition: liblwgeom.h:413

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

Referenced by lwgeom_count_vertices().

Here is the caller graph for this function: