PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtin()

LWTIN* lwgeom_as_lwtin ( const LWGEOM lwgeom)

Definition at line 268 of file lwgeom.c.

References TINTYPE, and LWGEOM::type.

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