PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ gserialized_fast_gbox_p()

int gserialized_fast_gbox_p ( const GSERIALIZED g,
GBOX gbox 
)

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

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

If it is not, return LW_FAILURE.

Definition at line 106 of file gserialized.c.

107 {
108  if (GFLAGS_GET_VERSION(g->gflags))
109  return gserialized2_fast_gbox_p(g, gbox);
110  else
111  return gserialized1_fast_gbox_p(g, gbox);
112 }
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:558
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:612
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:41
uint8_t gflags
Definition: liblwgeom.h:446

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: