PostGIS  2.5.7dev-r@@SVN_REVISION@@
brin_common.c
Go to the documentation of this file.
1 #include "postgis_brin.h"
2 
3 bool
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 }
bool is_gserialized_from_datum_empty(Datum the_datum)
Definition: brin_common.c:4
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