PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcurvepoly()

LWCURVEPOLY* lwgeom_as_lwcurvepoly ( const LWGEOM lwgeom)

Definition at line 165 of file lwgeom.c.

References CURVEPOLYTYPE, and LWGEOM::type.

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

166 {
167  if ( lwgeom == NULL ) return NULL;
168  if ( lwgeom->type == CURVEPOLYTYPE )
169  return (LWCURVEPOLY *)lwgeom;
170  else return NULL;
171 }
#define CURVEPOLYTYPE
Definition: liblwgeom.h:94
uint8_t type
Definition: liblwgeom.h:396
Here is the caller graph for this function: