PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_expand()

GSERIALIZED* gserialized_expand ( GSERIALIZED g,
double  distance 
)

Return a GSERIALIZED with an expanded bounding box.

Definition at line 780 of file gserialized_gist_nd.c.

781 {
782  char boxmem[GIDX_MAX_SIZE];
783  GIDX *gidx = (GIDX*)boxmem;
784  float fdistance = (float)distance;
785 
786  /* Get our bounding box out of the geography, return right away if
787  input is an EMPTY geometry. */
788  if ( gserialized_get_gidx_p(g, gidx) == LW_FAILURE )
789  {
790  return g;
791  }
792 
793  gidx_expand(gidx, fdistance);
794 
795  return gserialized_set_gidx(g, gidx);
796 }
#define LW_FAILURE
Definition: liblwgeom.h:79
Datum distance(PG_FUNCTION_ARGS)

References distance(), and LW_FAILURE.

Referenced by geography_expand().

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