PostGIS  2.1.10dev-r@@SVN_REVISION@@
static int lwpoly_calculate_gbox_cartesian ( LWPOLY poly,
GBOX gbox 
)
static

Definition at line 564 of file g_box.c.

References LW_FAILURE, LWPOLY::nrings, ptarray_calculate_gbox_cartesian(), and LWPOLY::rings.

Referenced by lwgeom_calculate_gbox_cartesian().

565 {
566  if ( ! poly ) return LW_FAILURE;
567  if ( poly->nrings == 0 ) return LW_FAILURE;
568  /* Just need to check outer ring */
569  return ptarray_calculate_gbox_cartesian( poly->rings[0], gbox );
570 }
int ptarray_calculate_gbox_cartesian(const POINTARRAY *pa, GBOX *gbox)
Calculate box (x/y) and add values to gbox.
Definition: g_box.c:471
#define LW_FAILURE
Definition: liblwgeom.h:54
POINTARRAY ** rings
Definition: liblwgeom.h:413
int nrings
Definition: liblwgeom.h:411

Here is the call graph for this function:

Here is the caller graph for this function: