PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_has_bbox()

int gserialized_has_bbox ( const GSERIALIZED gser)

Check if a GSERIALIZED has a bounding box without deserializing first.

Definition at line 163 of file gserialized.c.

164 {
165  if (GFLAGS_GET_VERSION(g->gflags))
166  return gserialized2_has_bbox(g);
167  else
168  return gserialized1_has_bbox(g);
169 }
int gserialized1_has_bbox(const GSERIALIZED *gser)
Check if a GSERIALIZED has a bounding box without deserializing first.
Definition: gserialized1.c:89
int gserialized2_has_bbox(const GSERIALIZED *g)
Check if a GSERIALIZED has a bounding box without deserializing first.
Definition: gserialized2.c:146
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_has_bbox(), and gserialized2_has_bbox().

Referenced by gserialized2_get_float_box_p(), gserialized_datum_get_box2df_p(), LWGEOM_dropBBOX(), LWGEOM_force_collection(), LWGEOM_force_multi(), and LWGEOM_hasBBOX().

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