PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcircstring()

LWCIRCSTRING* lwgeom_as_lwcircstring ( const LWGEOM lwgeom)

Definition at line 188 of file lwgeom.c.

189 {
190  if ( lwgeom == NULL ) return NULL;
191  if ( lwgeom->type == CIRCSTRINGTYPE )
192  return (LWCIRCSTRING *)lwgeom;
193  else return NULL;
194 }
#define CIRCSTRINGTYPE
Definition: liblwgeom.h:109
uint8_t type
Definition: liblwgeom.h:462

References CIRCSTRINGTYPE, and LWGEOM::type.

Referenced by extract_pointarrays_from_lwgeom(), lwcompound_contains_point(), LWGEOM_dumppoints(), lwgeom_swap_ordinates(), and wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: