PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 120 of file lwgeom.c.

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

121 {
122  if ( lwgeom == NULL ) return NULL;
123  if ( lwgeom->type == COMPOUNDTYPE )
124  return (LWCOMPOUND *)lwgeom;
125  else return NULL;
126 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:92
uint8_t type
Definition: liblwgeom.h:395
Here is the caller graph for this function: