PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 187 of file lwgeom.c.

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

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

Here is the caller graph for this function: