PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwpoly_calculate_gbox_cartesian()

static int lwpoly_calculate_gbox_cartesian ( LWPOLY poly,
GBOX gbox 
)
static

Definition at line 635 of file g_box.c.

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

Referenced by lwgeom_calculate_gbox_cartesian().

636 {
637  if ( ! poly ) return LW_FAILURE;
638  if ( poly->nrings == 0 ) return LW_FAILURE;
639  /* Just need to check outer ring */
640  return ptarray_calculate_gbox_cartesian( poly->rings[0], gbox );
641 }
int ptarray_calculate_gbox_cartesian(const POINTARRAY *pa, GBOX *gbox)
Calculate box (x/y) and add values to gbox.
Definition: g_box.c:542
uint32_t nrings
Definition: liblwgeom.h:457
#define LW_FAILURE
Definition: liblwgeom.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:459
Here is the call graph for this function:
Here is the caller graph for this function: