PostGIS  3.7.0dev-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 60 of file gserialized.c.

61 {
62  if (GFLAGS_GET_VERSION(g->gflags))
63  return gserialized2_set_gbox(g, gbox);
64  else
65  return gserialized1_set_gbox(g, gbox);
66 }
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:41
uint8_t gflags
Definition: liblwgeom.h:446

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: