PostGIS  2.1.10dev-r@@SVN_REVISION@@
int lwpoly_is_empty ( const LWPOLY poly)

Definition at line 327 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_force_clockwise(), lwpoly_force_dims(), lwpoly_reverse(), lwpoly_simplify(), and lwpoly_to_wkt_sb().

328 {
329  if ( (poly->nrings < 1) || (!poly->rings) || (!poly->rings[0]) || (poly->rings[0]->npoints < 1) )
330  return LW_TRUE;
331  return LW_FALSE;
332 }
int npoints
Definition: liblwgeom.h:327
#define LW_FALSE
Definition: liblwgeom.h:52
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:51
Definition: liblwgeom.h:413
int nrings
Definition: liblwgeom.h:411

Here is the caller graph for this function: