PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwline_is_empty()

int lwline_is_empty ( const LWLINE line)

Definition at line 496 of file lwline.c.

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

Referenced by asgml2_line_buf(), asgml3_line_buf(), lwgeom_is_empty(), lwline_force_dims(), lwline_get_lwpoint(), lwline_length(), lwline_length_2d(), lwline_reverse(), lwline_set_effective_area(), lwline_simplify(), and lwline_to_wkt_sb().

497 {
498  if ( !line->points || line->points->npoints < 1 )
499  return LW_TRUE;
500  return LW_FALSE;
501 }
int npoints
Definition: liblwgeom.h:355
#define LW_FALSE
Definition: liblwgeom.h:62
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:61
POINTARRAY * points
Definition: liblwgeom.h:406
Here is the caller graph for this function: