PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwline_is_empty()

int lwline_is_empty ( const LWLINE line)

Definition at line 511 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_chaikin(), lwline_force_dims(), lwline_get_lwpoint(), lwline_interpolate_points(), lwline_length(), lwline_length_2d(), lwline_set_effective_area(), and lwline_to_wkt_sb().

512 {
513  if ( !line->points || line->points->npoints < 1 )
514  return LW_TRUE;
515  return LW_FALSE;
516 }
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
POINTARRAY * points
Definition: liblwgeom.h:424
uint32_t npoints
Definition: liblwgeom.h:373
Here is the caller graph for this function: