PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwpsurface()

LWPSURFACE* lwgeom_as_lwpsurface ( const LWGEOM lwgeom)

Definition at line 269 of file lwgeom.c.

270 {
271  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
272  return (LWPSURFACE *)lwgeom;
273  else return NULL;
274 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:114
uint8_t type
Definition: liblwgeom.h:462

References POLYHEDRALSURFACETYPE, and LWGEOM::type.