PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 180 of file lwgeom.c.

181 {
182  if ( lwgeom == NULL ) return NULL;
183  if ( lwgeom->type == COMPOUNDTYPE )
184  return (LWCOMPOUND *)lwgeom;
185  else return NULL;
186 }
#define COMPOUNDTYPE
Definition: liblwgeom.h:124
uint8_t type
Definition: liblwgeom.h:476

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: