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

Definition at line 472 of file lwline.c.

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

Referenced by lwgeom_count_vertices().

473 {
474  assert(line);
475  if ( ! line->points )
476  return 0;
477  return line->points->npoints;
478 }
int npoints
Definition: liblwgeom.h:327
POINTARRAY * points
Definition: liblwgeom.h:378

Here is the caller graph for this function: