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

Definition at line 671 of file gserialized_gist_nd.c.

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

Referenced by gserialized_gist_consistent().

672 {
673  bool retval;
674 
675  POSTGIS_DEBUGF(4, "[GIST] internal consistent, strategy [%d], count[%i], query[%s], key[%s]",
676  strategy, geog_counter_internal++, gidx_to_string(query), gidx_to_string(key) );
677 
678  switch (strategy)
679  {
680  case RTOverlapStrategyNumber:
681  retval = (bool) gidx_overlaps(key, query);
682  break;
683  case RTSameStrategyNumber:
684  case RTContainsStrategyNumber:
685  case RTOldContainsStrategyNumber:
686  retval = (bool) gidx_contains(key, query);
687  break;
688  case RTContainedByStrategyNumber:
689  case RTOldContainedByStrategyNumber:
690  retval = (bool) gidx_overlaps(key, query);
691  break;
692  default:
693  retval = FALSE;
694  }
695 
696  return (retval);
697 }
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: