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

Definition at line 259 of file lwgeom.c.

References POLYHEDRALSURFACETYPE, and LWGEOM::type.

260 {
261  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
262  return (LWPSURFACE *)lwgeom;
263  else return NULL;
264 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:96
uint8_t type
Definition: liblwgeom.h:395