PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ is_poly()

static char is_poly ( const GSERIALIZED g)
static

Definition at line 125 of file postgis/lwgeom_geos.c.

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

Referenced by contains(), coveredby(), covers(), and geos_intersects().

126 {
127  int type = gserialized_get_type(g);
128  return type == POLYGONTYPE || type == MULTIPOLYGONTYPE;
129 }
uint32_t gserialized_get_type(const GSERIALIZED *s)
Extract the geometry type from the serialized form (it hides in the anonymous data area...
Definition: g_serialized.c:86
#define POLYGONTYPE
Definition: liblwgeom.h:86
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:89
type
Definition: ovdump.py:41
Here is the call graph for this function:
Here is the caller graph for this function: