PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ gserialized_is_empty()

int gserialized_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 181 of file gserialized.c.

182 {
183  if (GFLAGS_GET_VERSION(g->gflags))
184  return gserialized2_is_empty(g);
185  else
186  return gserialized1_is_empty(g);
187 }
int gserialized1_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
Definition: gserialized1.c:204
int gserialized2_is_empty(const GSERIALIZED *g)
Check if a GSERIALIZED is empty without deserializing first.
Definition: gserialized2.c:252
#define GFLAGS_GET_VERSION(gflags)
Definition: gserialized.c:41
uint8_t gflags
Definition: liblwgeom.h:446

References GSERIALIZED::gflags, GFLAGS_GET_VERSION, gserialized1_is_empty(), and gserialized2_is_empty().

Referenced by buffer(), contains(), containsproperly(), convexhull(), coverage_read_partition_into_collection(), coveredby(), covers(), crosses(), disjoint(), geography_bestsrid(), geography_centroid(), geography_distance(), geography_distance_tree(), geography_dwithin(), geography_line_interpolate_point(), geography_line_locate_point(), geography_line_substring(), geography_segmentize(), gserialized_datum_get_box2df_p(), hausdorffdistance(), hausdorffdistancedensify(), is_gserialized_from_datum_empty(), isring(), issimple(), isvalid(), LWGEOM_addpoint(), LWGEOM_angle(), LWGEOM_isempty(), LWGEOM_snaptogrid(), LWGEOM_snaptogrid_pointoff(), overlaps(), pgis_union_geometry_array(), postgis_valid_typmod(), RASTER_getGeometryValues(), RASTER_getPixelValueResample(), RASTER_InterpolateRaster(), ST_CoverageUnion(), ST_DistanceRectTree(), ST_DistanceRectTreeCached(), ST_Equals(), ST_FrechetDistance(), ST_Intersects(), ST_IntersectsIntervalTree(), ST_LargestEmptyCircle(), ST_MaximumInscribedCircle(), ST_MinimumBoundingCircle(), ST_MinimumBoundingRadius(), touches(), and within().

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