PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwpsurface()

LWPSURFACE* lwgeom_as_lwpsurface ( const LWGEOM lwgeom)

Definition at line 252 of file lwgeom.c.

253 {
254  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
255  return (LWPSURFACE *)lwgeom;
256  else return NULL;
257 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:128
uint8_t type
Definition: liblwgeom.h:476

References POLYHEDRALSURFACETYPE, and LWGEOM::type.