PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwtin()

LWTIN* lwgeom_as_lwtin ( const LWGEOM lwgeom)

Definition at line 260 of file lwgeom.c.

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

References TINTYPE, and LWGEOM::type.