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

Return a GSERIALIZED with an expanded bounding box.

Definition at line 463 of file gserialized_gist_nd.c.

References LW_FAILURE.

Referenced by geography_expand().

464 {
465  char boxmem[GIDX_MAX_SIZE];
466  GIDX *gidx = (GIDX*)boxmem;
467  float fdistance = (float)distance;
468 
469  /* Get our bounding box out of the geography, return right away if
470  input is an EMPTY geometry. */
471  if ( gserialized_get_gidx_p(g, gidx) == LW_FAILURE )
472  {
473  return g;
474  }
475 
476  gidx_expand(gidx, fdistance);
477 
478  return gserialized_set_gidx(g, gidx);
479 }
#define LW_FAILURE
Definition: liblwgeom.h:54
Datum distance(PG_FUNCTION_ARGS)

Here is the caller graph for this function: