PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ lwgeom_as_lwcircstring()

LWCIRCSTRING* lwgeom_as_lwcircstring ( const LWGEOM lwgeom)

Definition at line 216 of file lwgeom.c.

217 {
218  if ( lwgeom == NULL ) return NULL;
219  if ( lwgeom->type == CIRCSTRINGTYPE )
220  return (LWCIRCSTRING *)lwgeom;
221  else return NULL;
222 }
#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(), test_ptarrayarc_contains_point(), and wkt_parser_curvepolygon_add_ring().

Here is the caller graph for this function: