PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ is_gserialized_from_datum_empty()

bool is_gserialized_from_datum_empty ( Datum  the_datum)

Definition at line 4 of file brin_common.c.

References gserialized_is_empty(), and LW_TRUE.

Referenced by geom2d_brin_inclusion_add_value(), and gidx_brin_inclusion_add_value().

5 {
6  GSERIALIZED *geom = (GSERIALIZED*)PG_DETOAST_DATUM(the_datum);
7 
8  if (gserialized_is_empty(geom) == LW_TRUE)
9  return true;
10  else
11  return false;
12 }
int gserialized_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
Definition: g_serialized.c:179
#define LW_TRUE
Return types for functions with status returns.
Definition: liblwgeom.h:76
Here is the call graph for this function:
Here is the caller graph for this function: