PostGIS  2.3.7dev-r@@SVN_REVISION@@
GSERIALIZED* gserialized_expand ( GSERIALIZED g,
double  distance 
)

Return a GSERIALIZED with an expanded bounding box.

Definition at line 713 of file gserialized_gist_nd.c.

References LW_FAILURE.

Referenced by geography_expand().

714 {
715  char boxmem[GIDX_MAX_SIZE];
716  GIDX *gidx = (GIDX*)boxmem;
717  float fdistance = (float)distance;
718 
719  /* Get our bounding box out of the geography, return right away if
720  input is an EMPTY geometry. */
721  if ( gserialized_get_gidx_p(g, gidx) == LW_FAILURE )
722  {
723  return g;
724  }
725 
726  gidx_expand(gidx, fdistance);
727 
728  return gserialized_set_gidx(g, gidx);
729 }
#define LW_FAILURE
Definition: liblwgeom.h:78
Datum distance(PG_FUNCTION_ARGS)

Here is the caller graph for this function: