PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_internal()

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

Definition at line 1220 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().

1221 {
1222  bool retval;
1223 
1224  POSTGIS_DEBUGF(4, "[GIST] internal consistent, strategy [%d], count[%i], query[%s], key[%s]",
1225  strategy, geog_counter_internal++, gidx_to_string(query), gidx_to_string(key) );
1226 
1227  switch (strategy)
1228  {
1229  case RTOverlapStrategyNumber:
1230  retval = (bool) gidx_overlaps(key, query);
1231  break;
1232  case RTSameStrategyNumber:
1233  case RTContainsStrategyNumber:
1234  case RTOldContainsStrategyNumber:
1235  retval = (bool) gidx_contains(key, query);
1236  break;
1237  case RTContainedByStrategyNumber:
1238  case RTOldContainedByStrategyNumber:
1239  retval = (bool) gidx_overlaps(key, query);
1240  break;
1241  default:
1242  retval = FALSE;
1243  }
1244 
1245  return (retval);
1246 }
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: