PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_count_vertices()

uint32_t lwline_count_vertices ( LWLINE line)

Definition at line 519 of file lwline.c.

520 {
521  assert(line);
522  if ( ! line->points )
523  return 0;
524  return line->points->npoints;
525 }
POINTARRAY * points
Definition: liblwgeom.h:425
uint32_t npoints
Definition: liblwgeom.h:374

References POINTARRAY::npoints, and LWLINE::points.

Referenced by lwgeom_count_vertices().

Here is the caller graph for this function: