PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 156 of file lwgeom.c.

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

157 {
158  if ( lwgeom == NULL ) return NULL;
159  if ( lwgeom->type == COMPOUNDTYPE )
160  return (LWCOMPOUND *)lwgeom;
161  else return NULL;
162 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:93
uint8_t type
Definition: liblwgeom.h:396
Here is the caller graph for this function: