PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcurvepoly()

LWCURVEPOLY* lwgeom_as_lwcurvepoly ( const LWGEOM lwgeom)

Definition at line 197 of file lwgeom.c.

References CURVEPOLYTYPE, and LWGEOM::type.

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

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:93
uint8_t type
Definition: liblwgeom.h:398
Here is the caller graph for this function: