PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_datum_predicate_gidx_geom()

static int gserialized_datum_predicate_gidx_geom ( GIDX *  gidx1,
Datum  gs2,
gidx_predicate  predicate 
)
static

Definition at line 563 of file gserialized_gist_nd.c.

564 {
565  /* Put aside some stack memory and use it for GIDX pointers. */
566  char boxmem2[GIDX_MAX_SIZE];
567  GIDX *gidx2 = (GIDX*)boxmem2;
568 
569  POSTGIS_DEBUG(3, "entered function");
570 
571  /* Must be able to build box for gs2 arguement (ie, not empty geometry)
572  and predicate function to return true. */
573  if ( (gserialized_datum_get_gidx_p(gs2, gidx2) == LW_SUCCESS) &&
574  predicate(gidx1, gidx2) )
575  {
576  POSTGIS_DEBUGF(3, "got boxes %s and %s", gidx_to_string(gidx1), gidx_to_string(gidx2));
577  return LW_TRUE;
578  }
579  return LW_FALSE;
580 }
#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_geog_overlaps(), gserialized_gidx_geom_contains(), gserialized_gidx_geom_overlaps(), and gserialized_gidx_geom_same().

Here is the caller graph for this function: