PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwpsurface()

LWPSURFACE* lwgeom_as_lwpsurface ( const LWGEOM lwgeom)

Definition at line 228 of file lwgeom.c.

References POLYHEDRALSURFACETYPE, and LWGEOM::type.

229 {
230  if ( lwgeom->type == POLYHEDRALSURFACETYPE )
231  return (LWPSURFACE *)lwgeom;
232  else return NULL;
233 }
#define POLYHEDRALSURFACETYPE
Definition: liblwgeom.h:97
uint8_t type
Definition: liblwgeom.h:396