PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcurvepoly()

LWCURVEPOLY* lwgeom_as_lwcurvepoly ( const LWGEOM lwgeom)

Definition at line 197 of file lwgeom.c.

198 {
199  if ( lwgeom == NULL ) return NULL;
200  if ( lwgeom->type == CURVEPOLYTYPE )
201  return (LWCURVEPOLY *)lwgeom;
202  else return NULL;
203 }
#define CURVEPOLYTYPE
Definition: liblwgeom.h:94
uint8_t type
Definition: liblwgeom.h:399

References CURVEPOLYTYPE, and LWGEOM::type.

Referenced by LWGEOM_exteriorring_polygon(), LWGEOM_interiorringn_polygon(), and wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: