PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoint_is_empty()

int lwpoint_is_empty ( const LWPOINT point)

Definition at line 291 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(), lwpoint_getPoint2d_p(), lwpoint_getPoint3dm_p(), lwpoint_getPoint3dz_p(), lwpoint_getPoint4d_p(), and lwpoint_to_wkt_sb().

292 {
293  if ( ! point->point || point->point->npoints < 1 )
294  return LW_TRUE;
295  return LW_FALSE;
296 }
int npoints
Definition: liblwgeom.h:371
POINTARRAY * point
Definition: liblwgeom.h:411
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
Here is the caller graph for this function: