665 Datum gsdatum = PG_GETARG_DATUM(0);
666 BOX2DF *bbox_out = palloc(
sizeof(BOX2DF));
669 POSTGIS_DEBUG(4,
"[SPGIST] 'compress' function called");
679 POSTGIS_DEBUG(4,
"[SPGIST] empty geometry!");
680 PG_RETURN_POINTER(bbox_out);
684 if ((!isfinite(bbox_out->xmax) || !isfinite(bbox_out->xmin)) ||
685 (!isfinite(bbox_out->ymax) || !isfinite(bbox_out->ymin)))
689 POSTGIS_DEBUG(4,
"[SPGIST] infinite geometry!");
690 PG_RETURN_POINTER(bbox_out);
697 POSTGIS_DEBUG(4,
"[SPGIST] 'compress' function complete");
698 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)