PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_datum_predicate_geom_gidx()

static int gserialized_datum_predicate_geom_gidx ( Datum  gs1,
GIDX *  gidx2,
gidx_predicate  predicate 
)
static

Definition at line 583 of file gserialized_gist_nd.c.

584 {
585  /* Put aside some stack memory and use it for GIDX pointers. */
586  char boxmem2[GIDX_MAX_SIZE];
587  GIDX *gidx1 = (GIDX*)boxmem2;
588 
589  POSTGIS_DEBUG(3, "entered function");
590 
591  /* Must be able to build box for gs2 arguement (ie, not empty geometry)
592  and predicate function to return true. */
593  if ( (gserialized_datum_get_gidx_p(gs1, gidx1) == LW_SUCCESS) &&
594  predicate(gidx1, gidx2) )
595  {
596  POSTGIS_DEBUGF(3, "got boxes %s and %s", gidx_to_string(gidx1), gidx_to_string(gidx2));
597  return LW_TRUE;
598  }
599  return LW_FALSE;
600 }
#define LW_FALSE
Definition: liblwgeom.h:77
#define LW_SUCCESS
Definition: liblwgeom.h:80
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76

References LW_FALSE, LW_SUCCESS, and LW_TRUE.

Referenced by gserialized_gidx_geom_within().

Here is the caller graph for this function: