PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwpoly_calculate_gbox_cartesian()

static int lwpoly_calculate_gbox_cartesian ( LWPOLY poly,
GBOX gbox 
)
static

Definition at line 640 of file g_box.c.

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

Referenced by lwgeom_calculate_gbox_cartesian().

641 {
642  if ( ! poly ) return LW_FAILURE;
643  if ( poly->nrings == 0 ) return LW_FAILURE;
644  /* Just need to check outer ring */
645  return ptarray_calculate_gbox_cartesian( poly->rings[0], gbox );
646 }
int ptarray_calculate_gbox_cartesian(const POINTARRAY *pa, GBOX *gbox)
Calculate box (x/y) and add values to gbox.
Definition: g_box.c:547
#define LW_FAILURE
Definition: liblwgeom.h:78
POINTARRAY ** rings
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454
Here is the call graph for this function:
Here is the caller graph for this function: