1214 GistEntryVector *entryvec = (GistEntryVector *) PG_GETARG_POINTER(0);
1215 int *sizep = (
int *) PG_GETARG_POINTER(1);
1217 BOX2DF *box_cur, *box_union;
1219 POSTGIS_DEBUG(4,
"[GIST] 'union' function called");
1221 numranges = entryvec->n;
1223 box_cur = (BOX2DF*) DatumGetPointer(entryvec->vector[0].key);
1227 for ( i = 1; i < numranges; i++ )
1229 box_cur = (BOX2DF*) DatumGetPointer(entryvec->vector[i].key);
1233 *sizep =
sizeof(BOX2DF);
1235 POSTGIS_DEBUGF(4,
"[GIST] 'union', numranges(%i), pageunion %s", numranges,
box2df_to_string(box_union));
1237 PG_RETURN_POINTER(box_union);
static char * box2df_to_string(const BOX2DF *a)
void box2df_merge(BOX2DF *b_union, BOX2DF *b_new)
BOX2DF * box2df_copy(BOX2DF *b)