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
}
POLYHEDRALSURFACETYPE
#define POLYHEDRALSURFACETYPE
Definition:
liblwgeom.h:114
LWGEOM::type
uint8_t type
Definition:
liblwgeom.h:462
LWPSURFACE
Definition:
liblwgeom.h:643
References
POLYHEDRALSURFACETYPE
, and
LWGEOM::type
.
liblwgeom
liblwgeom.h
Generated by
1.9.1