PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwpoly_calculate_gbox_cartesian()

static int lwpoly_calculate_gbox_cartesian ( LWPOLY poly,
GBOX gbox 
)
static

Definition at line 697 of file gbox.c.

698 {
699  if ( ! poly ) return LW_FAILURE;
700  if ( poly->nrings == 0 ) return LW_FAILURE;
701  /* Just need to check outer ring */
702  return ptarray_calculate_gbox_cartesian( poly->rings[0], gbox );
703 }
int ptarray_calculate_gbox_cartesian(const POINTARRAY *pa, GBOX *gbox)
Calculate box (x/y) and add values to gbox.
Definition: gbox.c:601
#define LW_FAILURE
Definition: liblwgeom.h:110
POINTARRAY ** rings
Definition: liblwgeom.h:505
uint32_t nrings
Definition: liblwgeom.h:510

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

Referenced by lwgeom_calculate_gbox_cartesian().

Here is the call graph for this function:
Here is the caller graph for this function: