PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcircstring()

LWCIRCSTRING* lwgeom_as_lwcircstring ( const LWGEOM lwgeom)

Definition at line 171 of file lwgeom.c.

172 {
173  if ( lwgeom == NULL ) return NULL;
174  if ( lwgeom->type == CIRCSTRINGTYPE )
175  return (LWCIRCSTRING *)lwgeom;
176  else return NULL;
177 }
#define CIRCSTRINGTYPE
Definition: liblwgeom.h:123
uint8_t type
Definition: liblwgeom.h:476

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: