PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcircstring()

LWCIRCSTRING* lwgeom_as_lwcircstring ( const LWGEOM lwgeom)

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

148 {
149  if ( lwgeom == NULL ) return NULL;
150  if ( lwgeom->type == CIRCSTRINGTYPE )
151  return (LWCIRCSTRING *)lwgeom;
152  else return NULL;
153 }
uint8_t type
Definition: liblwgeom.h:396
#define CIRCSTRINGTYPE
Definition: liblwgeom.h:92
Here is the caller graph for this function: