PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcurvepoly()

LWCURVEPOLY* lwgeom_as_lwcurvepoly ( const LWGEOM lwgeom)

Definition at line 129 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().

130 {
131  if ( lwgeom == NULL ) return NULL;
132  if ( lwgeom->type == CURVEPOLYTYPE )
133  return (LWCURVEPOLY *)lwgeom;
134  else return NULL;
135 }
#define CURVEPOLYTYPE
Definition: liblwgeom.h:93
uint8_t type
Definition: liblwgeom.h:395
Here is the caller graph for this function: