PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 107 of file lwgeom.c.

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

108 {
109  if ( lwgeom == NULL ) return NULL;
110  if ( lwgeom->type == COMPOUNDTYPE )
111  return (LWCOMPOUND *)lwgeom;
112  else return NULL;
113 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:78
uint8_t type
Definition: liblwgeom.h:380
Here is the caller graph for this function: