PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ getQuadrant4D()

static uint8 getQuadrant4D ( BOX2DF *  centroid,
BOX2DF *  inBox 
)
static

Definition at line 128 of file gserialized_spgist_2d.c.

129 {
130  uint8 quadrant = 0;
131 
132  if (inBox->xmin > centroid->xmin)
133  quadrant |= 0x8;
134 
135  if (inBox->xmax > centroid->xmax)
136  quadrant |= 0x4;
137 
138  if (inBox->ymin > centroid->ymin)
139  quadrant |= 0x2;
140 
141  if (inBox->ymax > centroid->ymax)
142  quadrant |= 0x1;
143 
144  return quadrant;
145 }
Datum centroid(PG_FUNCTION_ARGS)

References centroid().

Referenced by gserialized_spgist_choose_2d(), and gserialized_spgist_picksplit_2d().

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