Support function.
Based on two datums return true if they satisfy the predicate and false otherwise.
Definition at line 506 of file gserialized_gist_nd.c.
509 char boxmem1[GIDX_MAX_SIZE];
510 char boxmem2[GIDX_MAX_SIZE];
511 GIDX *gidx1 = (GIDX *)boxmem1;
512 GIDX *gidx2 = (GIDX *)boxmem2;
514 POSTGIS_DEBUG(3,
"entered function");
518 if ((gserialized_datum_get_gidx_p(gs1, gidx1) ==
LW_SUCCESS) &&
519 (gserialized_datum_get_gidx_p(gs2, gidx2) ==
LW_SUCCESS) && predicate(gidx1, gidx2))
521 POSTGIS_DEBUGF(3,
"got boxes %s and %s", gidx_to_string(gidx1), gidx_to_string(gidx2));
#define LW_TRUE
Return types for functions with status returns.
References LW_FALSE, LW_SUCCESS, and LW_TRUE.
Referenced by gserialized_contains(), gserialized_overlaps(), gserialized_same(), and gserialized_within().