PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwline_count_vertices()

uint32_t lwline_count_vertices ( LWLINE line)

Definition at line 519 of file lwline.c.

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

Referenced by lwgeom_count_vertices().

520 {
521  assert(line);
522  if ( ! line->points )
523  return 0;
524  return line->points->npoints;
525 }
POINTARRAY * points
Definition: liblwgeom.h:424
uint32_t npoints
Definition: liblwgeom.h:373
Here is the caller graph for this function: