PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized2_is_empty()

int gserialized2_is_empty ( const GSERIALIZED g)

Check if a GSERIALIZED is empty without deserializing first.

Only checks if the number of elements of the parent geometry is zero, will not catch collections of empty, eg: GEOMETRYCOLLECTION(POINT EMPTY)

Definition at line 284 of file gserialized2.c.

285{
286 int isempty = LW_TRUE;
287 uint8_t *p = gserialized2_get_geometry_p(g);
289 return isempty;
290}
static size_t gserialized2_is_empty_recurse(const uint8_t *p, int *isempty)
static uint8_t * gserialized2_get_geometry_p(const GSERIALIZED *g)
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:107

References gserialized2_get_geometry_p(), gserialized2_is_empty_recurse(), and LW_TRUE.

Referenced by gserialized_is_empty(), and test_gserialized2_is_empty().

Here is the call graph for this function:
Here is the caller graph for this function: