PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWCURVEPOLY* lwgeom_as_lwcurvepoly ( const LWGEOM lwgeom)

Definition at line 196 of file lwgeom.c.

References CURVEPOLYTYPE, and LWGEOM::type.

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

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

Here is the caller graph for this function: