PostGIS  2.2.7dev-r@@SVN_REVISION@@
LWPSURFACE* lwgeom_as_lwpsurface ( const LWGEOM lwgeom)

Definition at line 179 of file lwgeom.c.

References POLYHEDRALSURFACETYPE, and LWGEOM::type.

180 {
181  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
182  return (LWPSURFACE *)lwgeom;
183  else return NULL;
184 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:82
uint8_t type
Definition: liblwgeom.h:380