PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_internal()

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

Definition at line 1221 of file gserialized_gist_nd.c.

1222 {
1223  bool retval;
1224 
1225  POSTGIS_DEBUGF(4, "[GIST] internal consistent, strategy [%d], count[%i], query[%s], key[%s]",
1226  strategy, geog_counter_internal++, gidx_to_string(query), gidx_to_string(key) );
1227 
1228  switch (strategy)
1229  {
1230  case RTOverlapStrategyNumber:
1231  retval = (bool) gidx_overlaps(key, query);
1232  break;
1233  case RTSameStrategyNumber:
1234  case RTContainsStrategyNumber:
1235  case RTOldContainsStrategyNumber:
1236  retval = (bool) gidx_contains(key, query);
1237  break;
1238  case RTContainedByStrategyNumber:
1239  case RTOldContainedByStrategyNumber:
1240  retval = (bool) gidx_overlaps(key, query);
1241  break;
1242  default:
1243  retval = false;
1244  }
1245 
1246  return (retval);
1247 }
bool gidx_contains(GIDX *a, GIDX *b)
static bool gidx_overlaps(GIDX *a, GIDX *b)

References gidx_contains(), and gidx_overlaps().

Referenced by gserialized_gist_consistent().

Here is the call graph for this function:
Here is the caller graph for this function: