PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_fast_gbox_p()

int gserialized_fast_gbox_p ( const GSERIALIZED g,
GBOX box 
)

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

If it is not, return LW_FAILURE.

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

If it is not, return LW_FAILURE.

Definition at line 77 of file gserialized.c.

78 {
79  if (GFLAGS_GET_VERSION(g->gflags))
80  return gserialized2_fast_gbox_p(g, gbox);
81  else
82  return gserialized1_fast_gbox_p(g, gbox);
83 }
int gserialized1_fast_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and fail if it is not already there.
Definition: gserialized1.c:557
int gserialized2_fast_gbox_p(const GSERIALIZED *g, GBOX *box)
Read the bounding box off a serialization and fail if it is not already there.
Definition: gserialized2.c:610
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_fast_gbox_p(), and gserialized2_fast_gbox_p().

Referenced by ST_AsMVTGeom().

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