Definition at line 717 of file gbox.c.
718{
720 uint32_t i;
723 assert(coll);
724 if ( (coll->
ngeoms == 0) || !gbox)
726
728
729 for ( i = 0; i < coll->
ngeoms; i++ )
730 {
732 {
733
734
735
736
737 if ( first )
738 {
741 }
742 else
743 {
745 }
747 }
748 }
750}
char result[OUT_DOUBLE_BUFFER_SIZE]
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.
void gbox_duplicate(const GBOX *original, GBOX *duplicate)
Copy the values of original GBOX into duplicate.
int lwgeom_calculate_gbox_cartesian(const LWGEOM *lwgeom, GBOX *gbox)
Calculate the 2-4D bounding box of a geometry.
#define LW_TRUE
Return types for functions with status returns.
References GBOX::flags, LWCOLLECTION::flags, gbox_duplicate(), gbox_merge(), LWCOLLECTION::geoms, LW_FAILURE, LW_FALSE, LW_SUCCESS, LW_TRUE, lwgeom_calculate_gbox_cartesian(), LWCOLLECTION::ngeoms, and result.
Referenced by lwgeom_calculate_gbox_cartesian().