PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 197 of file lwgeom.c.

198 {
199  if ( lwgeom == NULL ) return NULL;
200  if ( lwgeom->type == COMPOUNDTYPE )
201  return (LWCOMPOUND *)lwgeom;
202  else return NULL;
203 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:110
uint8_t type
Definition: liblwgeom.h:462

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: