PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ ST_IsCollection()

Datum ST_IsCollection ( PG_FUNCTION_ARGS  )

Definition at line 2195 of file lwgeom_functions_basic.c.

2196 {
2197  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_HEADER(0);
2198  int type = gserialized_get_type(geom);
2199  PG_RETURN_BOOL(lwtype_is_collection(type));
2200 }
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
Definition: gserialized.c:89
int lwtype_is_collection(uint8_t type)
Determine whether a type number is a collection or not.
Definition: lwgeom.c:1105
type
Definition: ovdump.py:42

References gserialized_get_type(), lwtype_is_collection(), and ovdump::type.

Here is the call graph for this function: