PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 188 of file lwgeom.c.

189 {
190  if ( lwgeom == NULL ) return NULL;
191  if ( lwgeom->type == COMPOUNDTYPE )
192  return (LWCOMPOUND *)lwgeom;
193  else return NULL;
194 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:93
uint8_t type
Definition: liblwgeom.h:399

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: