PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtin()

LWTIN* lwgeom_as_lwtin ( const LWGEOM lwgeom)

Definition at line 200 of file lwgeom.c.

References TINTYPE, and LWGEOM::type.

201 {
202  if ( lwgeom->type == TINTYPE )
203  return (LWTIN *)lwgeom;
204  else return NULL;
205 }
#define TINTYPE
Definition: liblwgeom.h:98
uint8_t type
Definition: liblwgeom.h:395