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

Definition at line 187 of file lwgeom.c.

References TINTYPE, and LWGEOM::type.

188 {
189  if ( lwgeom->type == TINTYPE )
190  return (LWTIN *)lwgeom;
191  else return NULL;
192 }
#define TINTYPE
Definition: liblwgeom.h:84
uint8_t type
Definition: liblwgeom.h:380