PostGIS  2.1.10dev-r@@SVN_REVISION@@
static bool gserialized_gist_consistent_leaf ( GIDX *  key,
GIDX *  query,
StrategyNumber  strategy 
)
inlinestatic

Definition at line 638 of file gserialized_gist_nd.c.

References FALSE, gidx_contains(), gidx_equals(), and gidx_overlaps().

Referenced by gserialized_gist_consistent().

639 {
640  bool retval;
641 
642  POSTGIS_DEBUGF(4, "[GIST] leaf consistent, strategy [%d], count[%i]",
643  strategy, geog_counter_leaf++);
644 
645  switch (strategy)
646  {
647  case RTOverlapStrategyNumber:
648  retval = (bool) gidx_overlaps(key, query);
649  break;
650  case RTSameStrategyNumber:
651  retval = (bool) gidx_equals(key, query);
652  break;
653  case RTContainsStrategyNumber:
654  case RTOldContainsStrategyNumber:
655  retval = (bool) gidx_contains(key, query);
656  break;
657  case RTContainedByStrategyNumber:
658  case RTOldContainedByStrategyNumber:
659  retval = (bool) gidx_contains(query, key);
660  break;
661  default:
662  retval = FALSE;
663  }
664 
665  return (retval);
666 }
static bool gidx_equals(GIDX *a, GIDX *b)
static bool gidx_overlaps(GIDX *a, GIDX *b)
#define FALSE
Definition: dbfopen.c:169
static bool gidx_contains(GIDX *a, GIDX *b)

Here is the call graph for this function:

Here is the caller graph for this function: