PostGIS  2.3.7dev-r@@SVN_REVISION@@

◆ lwpoint_is_empty()

int lwpoint_is_empty ( const LWPOINT point)

Definition at line 273 of file lwpoint.c.

References LW_FALSE, LW_TRUE, POINTARRAY::npoints, and LWPOINT::point.

Referenced by asgeojson_point_buf(), asgeojson_point_size(), asgml2_point_buf(), asgml3_point_buf(), lwgeom_interpolate_point(), lwgeom_is_empty(), lwline_from_ptarray(), lwpoint_force_dims(), lwpoint_get_m(), lwpoint_get_x(), lwpoint_get_y(), lwpoint_get_z(), and lwpoint_to_wkt_sb().

274 {
275  if ( ! point->point || point->point->npoints < 1 )
276  return LW_TRUE;
277  return LW_FALSE;
278 }
int npoints
Definition: liblwgeom.h:370
Definition: liblwgeom.h:410
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
Here is the caller graph for this function: