PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcompound()

LWCOMPOUND* lwgeom_as_lwcompound ( const LWGEOM lwgeom)

Definition at line 179 of file lwgeom.c.

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

References COMPOUNDTYPE, and LWGEOM::type.

Referenced by wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: