PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwtin_to_wkt_sb()

static void lwtin_to_wkt_sb ( const LWTIN tin,
stringbuffer_t sb,
int  precision,
uint8_t  variant 
)
static

Definition at line 545 of file lwout_wkt.c.

546 {
547  uint32_t i = 0;
548 
549  if ( ! (variant & WKT_NO_TYPE) )
550  {
551  stringbuffer_append(sb, "TIN"); /* "TIN" */
553  }
554  if ( tin->ngeoms < 1 )
555  {
556  empty_to_wkt_sb(sb);
557  return;
558  }
559 
560  stringbuffer_append(sb, "(");
561  for ( i = 0; i < tin->ngeoms; i++ )
562  {
563  if ( i > 0 )
564  stringbuffer_append(sb, ",");
565  /* We don't want type strings on our subgeoms */
567  }
568  stringbuffer_append(sb, ")");
569 }
static uint8_t variant
Definition: cu_in_twkb.c:26
static uint8_t precision
Definition: cu_in_twkb.c:25
#define WKT_NO_TYPE
Well-Known Text (WKT) Output Variant Types.
static void dimension_qualifiers_to_wkt_sb(const LWGEOM *geom, stringbuffer_t *sb, uint8_t variant)
Definition: lwout_wkt.c:39
static void empty_to_wkt_sb(stringbuffer_t *sb)
Definition: lwout_wkt.c:69
static void lwtriangle_to_wkt_sb(const LWTRIANGLE *tri, stringbuffer_t *sb, int precision, uint8_t variant)
Definition: lwout_wkt.c:524
void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
Definition: stringbuffer.c:134
uint32_t ngeoms
Definition: liblwgeom.h:588
LWTRIANGLE ** geoms
Definition: liblwgeom.h:590
unsigned int uint32_t
Definition: uthash.h:78

References dimension_qualifiers_to_wkt_sb(), empty_to_wkt_sb(), LWTIN::geoms, lwtriangle_to_wkt_sb(), LWTIN::ngeoms, precision, stringbuffer_append(), variant, and WKT_NO_TYPE.

Referenced by lwgeom_to_wkt_sb().

Here is the call graph for this function:
Here is the caller graph for this function: