PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWCIRCSTRING* lwgeom_as_lwcircstring ( const LWGEOM lwgeom)

Definition at line 178 of file lwgeom.c.

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().

179 {
180  if ( lwgeom == NULL ) return NULL;
181  if ( lwgeom->type == CIRCSTRINGTYPE )
182  return (LWCIRCSTRING *)lwgeom;
183  else return NULL;
184 }
uint8_t type
Definition: liblwgeom.h:395
#define CIRCSTRINGTYPE
Definition: liblwgeom.h:91

Here is the caller graph for this function: