PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_is_empty()

int lwline_is_empty ( const LWLINE line)

Definition at line 511 of file lwline.c.

512 {
513  if ( !line->points || line->points->npoints < 1 )
514  return LW_TRUE;
515  return LW_FALSE;
516 }
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
POINTARRAY * points
Definition: liblwgeom.h:425
uint32_t npoints
Definition: liblwgeom.h:374

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().

Here is the caller graph for this function: