PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_is_empty()

int lwline_is_empty ( const LWLINE line)

Definition at line 525 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().

526 {
527  if ( !line->points || line->points->npoints < 1 )
528  return LW_TRUE;
529  return LW_FALSE;
530 }
int npoints
Definition: liblwgeom.h:371
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
Definition: liblwgeom.h:422
Here is the caller graph for this function: