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

Definition at line 116 of file lwgeom.c.

References CURVEPOLYTYPE, and LWGEOM::type.

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

117 {
118  if ( lwgeom == NULL ) return NULL;
119  if ( lwgeom->type == CURVEPOLYTYPE )
120  return (LWCURVEPOLY *)lwgeom;
121  else return NULL;
122 }
#define CURVEPOLYTYPE
Definition: liblwgeom.h:79
uint8_t type
Definition: liblwgeom.h:380

Here is the caller graph for this function: