PostGIS  2.4.9dev-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:371
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the caller graph for this function: