PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ is_poly()

static char is_poly ( const GSERIALIZED g)
inlinestatic

Definition at line 68 of file lwgeom_geos_predicates.c.

69 {
70  int type = gserialized_get_type(g);
71  return type == POLYGONTYPE || type == MULTIPOLYGONTYPE;
72 }
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:118
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:107
#define POLYGONTYPE
Definition: liblwgeom.h:104
type
Definition: ovdump.py:42

References gserialized_get_type(), MULTIPOLYGONTYPE, POLYGONTYPE, and ovdump::type.

Referenced by contains(), coveredby(), covers(), ST_Intersects(), and within().

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