PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ gserialized_same_2d()

Datum gserialized_same_2d ( PG_FUNCTION_ARGS  )

Definition at line 842 of file gserialized_gist_2d.c.

References box2df_equals(), gserialized_datum_predicate_2d(), gserialized_within_2d(), LW_TRUE, and PG_FUNCTION_INFO_V1().

Referenced by gserialized_distance_box_2d().

843 {
844  if ( gserialized_datum_predicate_2d(PG_GETARG_DATUM(0), PG_GETARG_DATUM(1), box2df_equals) == LW_TRUE )
845  PG_RETURN_BOOL(true);
846 
847  PG_RETURN_BOOL(false);
848 }
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:75
bool box2df_equals(const BOX2DF *a, const BOX2DF *b)
static int gserialized_datum_predicate_2d(Datum gs1, Datum gs2, box2df_predicate predicate)
Support function.
Here is the call graph for this function:
Here is the caller graph for this function: