PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 188 of file lwgeom.c.

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

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:92
uint8_t type
Definition: liblwgeom.h:398
Here is the caller graph for this function: