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

Definition at line 98 of file lwgeom.c.

References CIRCSTRINGTYPE, and LWGEOM::type.

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

99 {
100  if ( lwgeom == NULL ) return NULL;
101  if ( lwgeom->type == CIRCSTRINGTYPE )
102  return (LWCIRCSTRING *)lwgeom;
103  else return NULL;
104 }
uint8_t type
Definition: liblwgeom.h:380
#define CIRCSTRINGTYPE
Definition: liblwgeom.h:77

Here is the caller graph for this function: