PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcurvepoly()

LWCURVEPOLY* lwgeom_as_lwcurvepoly ( const LWGEOM lwgeom)

Definition at line 188 of file lwgeom.c.

189 {
190  if ( lwgeom == NULL ) return NULL;
191  if ( lwgeom->type == CURVEPOLYTYPE )
192  return (LWCURVEPOLY *)lwgeom;
193  else return NULL;
194 }
#define CURVEPOLYTYPE
Definition: liblwgeom.h:125
uint8_t type
Definition: liblwgeom.h:448

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: