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

◆ gserialized_get_gbox_p()

int gserialized_get_gbox_p ( const GSERIALIZED g,
GBOX gbox 
)

Read the box from the GSERIALIZED or calculate it if necessary.

Pull a GBOX from the header of a GSERIALIZED, if one is available.

Return #LWFAILURE if box cannot be calculated (NULL or EMPTY input).

If it is not, calculate it from the geometry. If that doesn't work (null or empty) return LW_FAILURE.

Pull a GBOX from the header of a GSERIALIZED, if one is available.

Return #LWFAILURE if box cannot be calculated (NULL or EMPTY input).

If it is not, calculate it from the geometry. If that doesn't work (null or empty) return LW_FAILURE.

Definition at line 94 of file gserialized.c.

95{
97 return gserialized2_get_gbox_p(g, gbox);
98 else
99 return gserialized1_get_gbox_p(g, gbox);
100}
int gserialized1_get_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and calculate one if it is not already there.
int gserialized2_get_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and calculate one if it is not already there.
#define GFLAGS_GET_VERSION(gflags)
Definition gserialized.c:41
uint8_t gflags
Definition liblwgeom.h:446