PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwpsurface()

LWPSURFACE* lwgeom_as_lwpsurface ( const LWGEOM lwgeom)

Definition at line 297 of file lwgeom.c.

298 {
299  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
300  return (LWPSURFACE *)lwgeom;
301  else return NULL;
302 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:114
uint8_t type
Definition: liblwgeom.h:462

References POLYHEDRALSURFACETYPE, and LWGEOM::type.