PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_internal()

static bool gserialized_gist_consistent_internal ( GIDX *  key,
GIDX *  query,
StrategyNumber  strategy 
)
inlinestatic

Definition at line 965 of file gserialized_gist_nd.c.

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

Referenced by gserialized_gist_consistent().

966 {
967  bool retval;
968 
969  POSTGIS_DEBUGF(4, "[GIST] internal consistent, strategy [%d], count[%i], query[%s], key[%s]",
970  strategy, geog_counter_internal++, gidx_to_string(query), gidx_to_string(key) );
971 
972  switch (strategy)
973  {
974  case RTOverlapStrategyNumber:
975  retval = (bool) gidx_overlaps(key, query);
976  break;
977  case RTSameStrategyNumber:
978  case RTContainsStrategyNumber:
979  case RTOldContainsStrategyNumber:
980  retval = (bool) gidx_contains(key, query);
981  break;
982  case RTContainedByStrategyNumber:
983  case RTOldContainedByStrategyNumber:
984  retval = (bool) gidx_overlaps(key, query);
985  break;
986  default:
987  retval = FALSE;
988  }
989 
990  return (retval);
991 }
static bool gidx_overlaps(GIDX *a, GIDX *b)
#define FALSE
Definition: dbfopen.c:168
static bool gidx_contains(GIDX *a, GIDX *b)
Here is the call graph for this function:
Here is the caller graph for this function: