PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ gserialized_datum_predicate_box2df_geom_2d()

static int gserialized_datum_predicate_box2df_geom_2d ( const BOX2DF *  br1,
Datum  gs2,
box2df_predicate  predicate 

Definition at line 720 of file gserialized_gist_2d.c.

References box2df_to_string(), gserialized_contains_box2df_geom_2d(), gserialized_datum_get_box2df_p(), LW_FALSE, LW_SUCCESS, LW_TRUE, and PG_FUNCTION_INFO_V1().

Referenced by gserialized_contains_box2df_geom_2d(), gserialized_overlaps_box2df_geom_2d(), and gserialized_within_box2df_geom_2d().

721 {
722  BOX2DF b2, *br2=NULL;
723  POSTGIS_DEBUG(3, "entered function");
725  if (gserialized_datum_get_box2df_p(gs2, &b2) == LW_SUCCESS) br2 = &b2;
727  if ( predicate(br1, br2) )
728  {
729  POSTGIS_DEBUGF(3, "got boxes %s", br2 ? box2df_to_string(&b2) : "(null)");
730  return LW_TRUE;
731  }
732  return LW_FALSE;
733 }
#define LW_SUCCESS
Definition: liblwgeom.h:79
static char * box2df_to_string(const BOX2DF *a)
#define LW_FALSE
Definition: liblwgeom.h:76
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
int gserialized_datum_get_box2df_p(Datum gsdatum, BOX2DF *box2df)
Peak into a GSERIALIZED datum to find the bounding box.
Here is the call graph for this function:
Here is the caller graph for this function: