PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void lwcircstring_to_wkt_sb ( const LWCIRCSTRING circ,
stringbuffer_t sb,
int  precision,
uint8_t  variant 

Definition at line 182 of file lwout_wkt.c.

References dimension_qualifiers_to_wkt_sb(), empty_to_wkt_sb(), lwcircstring_is_empty(), LWCIRCSTRING::points, ptarray_to_wkt_sb(), stringbuffer_append(), and WKT_NO_TYPE.

Referenced by lwcompound_to_wkt_sb(), lwcurvepoly_to_wkt_sb(), lwgeom_to_wkt_sb(), and lwmcurve_to_wkt_sb().

183 {
184  if ( ! (variant & WKT_NO_TYPE) )
185  {
186  stringbuffer_append(sb, "CIRCULARSTRING"); /* "CIRCULARSTRING" */
187  dimension_qualifiers_to_wkt_sb((LWGEOM*)circ, sb, variant);
188  }
189  if ( lwcircstring_is_empty(circ) )
190  {
191  empty_to_wkt_sb(sb);
192  return;
193  }
194  ptarray_to_wkt_sb(circ->points, sb, precision, variant);
195 }
static void dimension_qualifiers_to_wkt_sb(const LWGEOM *geom, stringbuffer_t *sb, uint8_t variant)
Definition: lwout_wkt.c:25
#define WKT_NO_TYPE
Well-Known Text (WKT) Output Variant Types.
static void ptarray_to_wkt_sb(const POINTARRAY *ptarray, stringbuffer_t *sb, int precision, uint8_t variant)
Definition: lwout_wkt.c:69
int lwcircstring_is_empty(const LWCIRCSTRING *circ)
Definition: lwcircstring.c:263
static void empty_to_wkt_sb(stringbuffer_t *sb)
Definition: lwout_wkt.c:55
void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
Definition: stringbuffer.c:128
Definition: liblwgeom.h:400

Here is the call graph for this function:

Here is the caller graph for this function: