PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwline_count_vertices()

int lwline_count_vertices ( LWLINE line)

Definition at line 533 of file lwline.c.

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

Referenced by lwgeom_count_vertices().

534 {
535  assert(line);
536  if ( ! line->points )
537  return 0;
538  return line->points->npoints;
539 }
int npoints
Definition: liblwgeom.h:370
POINTARRAY * points
Definition: liblwgeom.h:421
Here is the caller graph for this function: