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

Definition at line 605 of file g_box.c.

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

Referenced by lwgeom_calculate_gbox_cartesian().

606 {
607  if ( ! poly ) return LW_FAILURE;
608  if ( poly->nrings == 0 ) return LW_FAILURE;
609  /* Just need to check outer ring */
610  return ptarray_calculate_gbox_cartesian( poly->rings[0], gbox );
611 }
int ptarray_calculate_gbox_cartesian(const POINTARRAY *pa, GBOX *gbox)
Calculate box (x/y) and add values to gbox.
Definition: g_box.c:512
#define LW_FAILURE
Definition: liblwgeom.h:64
POINTARRAY ** rings
Definition: liblwgeom.h:441
int nrings
Definition: liblwgeom.h:439

Here is the call graph for this function:

Here is the caller graph for this function: