Definition at line 2940 of file lwgeodetic.c.
References GBOX::flags, gbox_check_poles(), gbox_duplicate(), gbox_merge(), LW_FAILURE, LW_FALSE, LW_SUCCESS, LW_TRUE, LWPOLY::nrings, ptarray_calculate_gbox_geodetic(), and LWPOLY::rings.
Referenced by lwgeom_calculate_gbox_geodetic().
2949 for ( i = 0; i < poly->
nrings; i++ )
void gbox_duplicate(const GBOX *original, GBOX *duplicate)
Copy the values of original GBOX into duplicate.
int gbox_merge(const GBOX *new_box, GBOX *merge_box)
Update the merged GBOX to be large enough to include itself and the new box.
#define LW_TRUE
Return types for functions with status returns.
int ptarray_calculate_gbox_geodetic(const POINTARRAY *pa, GBOX *gbox)
Calculate geodetic (x/y/z) box and add values to gbox.
static int gbox_check_poles(GBOX *gbox)
Check to see if this geocentric gbox is wrapped around a pole.