PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 225 of file lwgeom.c.

226 {
227  if ( lwgeom == NULL ) return NULL;
228  if ( lwgeom->type == COMPOUNDTYPE )
229  return (LWCOMPOUND *)lwgeom;
230  else return NULL;
231 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:110
uint8_t type
Definition: liblwgeom.h:462

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by ST_CurveN(), ST_NumCurves(), and wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: