PostGIS  2.2.7dev-r@@SVN_REVISION@@
int lwline_count_vertices ( LWLINE line)

Definition at line 504 of file lwline.c.

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

Referenced by lwgeom_count_vertices().

505 {
506  assert(line);
507  if ( ! line->points )
508  return 0;
509  return line->points->npoints;
510 }
int npoints
Definition: liblwgeom.h:355
POINTARRAY * points
Definition: liblwgeom.h:406

Here is the caller graph for this function: