667 Datum gsdatum = PG_GETARG_DATUM(0);
668 BOX2DF *bbox_out = palloc(
sizeof(BOX2DF));
671 POSTGIS_DEBUG(4,
"[SPGIST] 'compress' function called");
681 POSTGIS_DEBUG(4,
"[SPGIST] empty geometry!");
682 PG_RETURN_POINTER(bbox_out);
686 if ((!isfinite(bbox_out->xmax) || !isfinite(bbox_out->xmin)) ||
687 (!isfinite(bbox_out->ymax) || !isfinite(bbox_out->ymin)))
691 POSTGIS_DEBUG(4,
"[SPGIST] infinite geometry!");
692 PG_RETURN_POINTER(bbox_out);
699 POSTGIS_DEBUG(4,
"[SPGIST] 'compress' function complete");
700 PG_RETURN_POINTER(bbox_out);
void box2df_set_empty(BOX2DF *a)
void box2df_set_finite(BOX2DF *a)
int gserialized_datum_get_box2df_p(Datum gsdatum, BOX2DF *box2df)
Peak into a GSERIALIZED datum to find the bounding box.
void box2df_validate(BOX2DF *b)