PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ lwpoly_is_empty()

int lwpoly_is_empty ( const LWPOLY poly)

Definition at line 418 of file lwpoly.c.

References LW_FALSE, LW_TRUE, POINTARRAY::npoints, LWPOLY::nrings, and LWPOLY::rings.

Referenced by asgml2_poly_buf(), asgml2_poly_size(), asgml3_poly_buf(), lwgeom_is_empty(), lwpoly_chaikin(), lwpoly_contains_point(), lwpoly_force_clockwise(), lwpoly_force_dims(), lwpoly_is_clockwise(), lwpoly_set_effective_area(), and lwpoly_to_wkt_sb().

419 {
420  if ( (poly->nrings < 1) || (!poly->rings) || (!poly->rings[0]) || (poly->rings[0]->npoints < 1) )
421  return LW_TRUE;
422  return LW_FALSE;
423 }
uint32_t nrings
Definition: liblwgeom.h:457
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
POINTARRAY ** rings
Definition: liblwgeom.h:459
uint32_t npoints
Definition: liblwgeom.h:373
Here is the caller graph for this function: