PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ gserialized_gist_consistent_leaf_2d()

static bool gserialized_gist_consistent_leaf_2d ( BOX2DF *  key,
BOX2DF *  query,
StrategyNumber  strategy 
)
inlinestatic

Definition at line 1065 of file gserialized_gist_2d.c.

References box2df_above(), box2df_below(), box2df_contains(), box2df_equals(), box2df_left(), box2df_overabove(), box2df_overbelow(), box2df_overlaps(), box2df_overleft(), box2df_overright(), and box2df_right().

Referenced by gserialized_gist_consistent_2d().

1066 {
1067  bool retval;
1068 
1069  POSTGIS_DEBUGF(4, "[GIST] leaf consistent, strategy [%d], count[%i]",
1070  strategy, g2d_counter_leaf++);
1071 
1072  switch (strategy)
1073  {
1074 
1075  /* Basic overlaps */
1076  case RTOverlapStrategyNumber:
1077  retval = (bool) box2df_overlaps(key, query);
1078  break;
1079  case RTSameStrategyNumber:
1080  retval = (bool) box2df_equals(key, query);
1081  break;
1082  case RTContainsStrategyNumber:
1083  case RTOldContainsStrategyNumber:
1084  retval = (bool) box2df_contains(key, query);
1085  break;
1086  case RTContainedByStrategyNumber:
1087  case RTOldContainedByStrategyNumber:
1088  retval = (bool) box2df_contains(query, key);
1089  break;
1090 
1091  /* To one side */
1092  case RTAboveStrategyNumber:
1093  retval = (bool) box2df_above(key, query);
1094  break;
1095  case RTBelowStrategyNumber:
1096  retval = (bool) box2df_below(key, query);
1097  break;
1098  case RTRightStrategyNumber:
1099  retval = (bool) box2df_right(key, query);
1100  break;
1101  case RTLeftStrategyNumber:
1102  retval = (bool) box2df_left(key, query);
1103  break;
1104 
1105  /* Overlapping to one side */
1106  case RTOverAboveStrategyNumber:
1107  retval = (bool) box2df_overabove(key, query);
1108  break;
1109  case RTOverBelowStrategyNumber:
1110  retval = (bool) box2df_overbelow(key, query);
1111  break;
1112  case RTOverRightStrategyNumber:
1113  retval = (bool) box2df_overright(key, query);
1114  break;
1115  case RTOverLeftStrategyNumber:
1116  retval = (bool) box2df_overleft(key, query);
1117  break;
1118 
1119  default:
1120  retval = false;
1121  }
1122 
1123  return (retval);
1124 }
bool box2df_left(const BOX2DF *a, const BOX2DF *b)
bool box2df_overright(const BOX2DF *a, const BOX2DF *b)
bool box2df_overleft(const BOX2DF *a, const BOX2DF *b)
bool box2df_overlaps(const BOX2DF *a, const BOX2DF *b)
bool box2df_overabove(const BOX2DF *a, const BOX2DF *b)
bool box2df_equals(const BOX2DF *a, const BOX2DF *b)
bool box2df_above(const BOX2DF *a, const BOX2DF *b)
bool box2df_overbelow(const BOX2DF *a, const BOX2DF *b)
bool box2df_contains(const BOX2DF *a, const BOX2DF *b)
bool box2df_below(const BOX2DF *a, const BOX2DF *b)
bool box2df_right(const BOX2DF *a, const BOX2DF *b)
Here is the call graph for this function:
Here is the caller graph for this function: