PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ gserialized_contains_2d()

Datum gserialized_contains_2d ( PG_FUNCTION_ARGS  )

Definition at line 814 of file gserialized_gist_2d.c.

References box2df_contains(), FALSE, gserialized_datum_predicate_2d(), gserialized_overlaps_2d(), LW_TRUE, PG_FUNCTION_INFO_V1(), and TRUE.

Referenced by gserialized_within_2d().

815 {
816  POSTGIS_DEBUG(3, "entered function");
817  if ( gserialized_datum_predicate_2d(PG_GETARG_DATUM(0), PG_GETARG_DATUM(1), box2df_contains) == LW_TRUE )
818  PG_RETURN_BOOL(TRUE);
819 
820  PG_RETURN_BOOL(FALSE);
821 }
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
#define FALSE
Definition: dbfopen.c:168
bool box2df_contains(const BOX2DF *a, const BOX2DF *b)
static int gserialized_datum_predicate_2d(Datum gs1, Datum gs2, box2df_predicate predicate)
Support function.
#define TRUE
Definition: dbfopen.c:169
Here is the call graph for this function:
Here is the caller graph for this function: