PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwpsurface()

LWPSURFACE* lwgeom_as_lwpsurface ( const LWGEOM lwgeom)

Definition at line 192 of file lwgeom.c.

References POLYHEDRALSURFACETYPE, and LWGEOM::type.

193 {
194  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
195  return (LWPSURFACE *)lwgeom;
196  else return NULL;
197 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:96
uint8_t type
Definition: liblwgeom.h:395