PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized_set_gbox()

GSERIALIZED* gserialized_set_gbox ( GSERIALIZED g,
GBOX gbox 
)

Copy a new bounding box into an existing gserialized.

If necessary a new GSERIALIZED will be allocated. Test that input != output before freeing input.

Definition at line 31 of file gserialized.c.

32 {
33  if (GFLAGS_GET_VERSION(g->gflags))
34  return gserialized2_set_gbox(g, gbox);
35  else
36  return gserialized1_set_gbox(g, gbox);
37 }
GSERIALIZED * gserialized1_set_gbox(GSERIALIZED *g, GBOX *gbox)
Update the bounding box of a GSERIALIZED, allocating a fresh one if there is not enough space to just...
GSERIALIZED * gserialized2_set_gbox(GSERIALIZED *g, GBOX *gbox)
Update the bounding box of a GSERIALIZED, allocating a fresh one if there is not enough space to just...
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:12
uint8_t gflags
Definition: liblwgeom.h:432

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_set_gbox(), and gserialized2_set_gbox().

Referenced by gserialized_expand().

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