PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWTIN* lwgeom_as_lwtin ( const LWGEOM lwgeom)

Definition at line 267 of file lwgeom.c.

References TINTYPE, and LWGEOM::type.

268 {
269  if ( lwgeom->type == TINTYPE )
270  return (LWTIN *)lwgeom;
271  else return NULL;
272 }
#define TINTYPE
Definition: liblwgeom.h:98
uint8_t type
Definition: liblwgeom.h:395