PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized2_fast_gbox_p()

int gserialized2_fast_gbox_p ( const GSERIALIZED g,
GBOX box 
)

Read the box from the GSERIALIZED or return #LWFAILURE if box is unavailable.

Read the box from the GSERIALIZED or return #LWFAILURE if box is unavailable.

Definition at line 643 of file gserialized2.c.

644{
645 /* Try to just read the serialized box. */
647 {
648 return LW_SUCCESS;
649 }
650 /* No box? Try to peek into simpler geometries and */
651 /* derive a box without creating an lwgeom */
652 else if (gserialized2_peek_gbox_p(g, box) == LW_SUCCESS)
653 {
654 return LW_SUCCESS;
655 }
656 else
657 {
658 return LW_FAILURE;
659 }
660}
static int gserialized2_read_gbox_p(const GSERIALIZED *g, GBOX *gbox)
int gserialized2_peek_gbox_p(const GSERIALIZED *g, GBOX *gbox)
#define LW_FAILURE
Definition liblwgeom.h:110
#define LW_SUCCESS
Definition liblwgeom.h:111

References gserialized2_peek_gbox_p(), gserialized2_read_gbox_p(), LW_FAILURE, and LW_SUCCESS.

Referenced by gserialized_fast_gbox_p().

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