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

Definition at line 1154 of file gserialized_gist_nd.c.

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

Referenced by gserialized_gist_consistent().

1155 {
1156  bool retval;
1157 
1158  POSTGIS_DEBUGF(4, "[GIST] internal consistent, strategy [%d], count[%i], query[%s], key[%s]",
1159  strategy, geog_counter_internal++, gidx_to_string(query), gidx_to_string(key) );
1160 
1161  switch (strategy)
1162  {
1163  case RTOverlapStrategyNumber:
1164  retval = (bool) gidx_overlaps(key, query);
1165  break;
1166  case RTSameStrategyNumber:
1167  case RTContainsStrategyNumber:
1168  case RTOldContainsStrategyNumber:
1169  retval = (bool) gidx_contains(key, query);
1170  break;
1171  case RTContainedByStrategyNumber:
1172  case RTOldContainedByStrategyNumber:
1173  retval = (bool) gidx_overlaps(key, query);
1174  break;
1175  default:
1176  retval = FALSE;
1177  }
1178 
1179  return (retval);
1180 }
bool gidx_contains(GIDX *a, GIDX *b)
static bool gidx_overlaps(GIDX *a, GIDX *b)
#define FALSE
Definition: dbfopen.c:168

Here is the call graph for this function:

Here is the caller graph for this function: