PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtin()

LWTIN* lwgeom_as_lwtin ( const LWGEOM lwgeom)

Definition at line 259 of file lwgeom.c.

References TINTYPE, and LWGEOM::type.

260 {
261  if ( lwgeom->type == TINTYPE )
262  return (LWTIN *)lwgeom;
263  else return NULL;
264 }
#define TINTYPE
Definition: liblwgeom.h:98
uint8_t type
Definition: liblwgeom.h:398