PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwpoint_to_wkt_sb()

static void lwpoint_to_wkt_sb ( const LWPOINT pt,
stringbuffer_t sb,
int  precision,
uint8_t  variant 
)
static

Definition at line 136 of file lwout_wkt.c.

137 {
138  if ( ! (variant & WKT_NO_TYPE) )
139  {
140  stringbuffer_append(sb, "POINT"); /* "POINT" */
142  }
143 
144  if ( lwpoint_is_empty(pt) )
145  {
146  empty_to_wkt_sb(sb);
147  return;
148  }
149 
151 }
static uint8_t variant
Definition: cu_in_twkb.c:26
static uint8_t precision
Definition: cu_in_twkb.c:25
int lwpoint_is_empty(const LWPOINT *point)
Definition: lwpoint.c:291
#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 ptarray_to_wkt_sb(const POINTARRAY *ptarray, stringbuffer_t *sb, int precision, uint8_t variant)
Definition: lwout_wkt.c:83
void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.
Definition: stringbuffer.c:134
POINTARRAY * point
Definition: liblwgeom.h:414

References dimension_qualifiers_to_wkt_sb(), empty_to_wkt_sb(), lwpoint_is_empty(), LWPOINT::point, precision, ptarray_to_wkt_sb(), stringbuffer_append(), variant, and WKT_NO_TYPE.

Referenced by lwgeom_to_wkt_sb(), and lwmpoint_to_wkt_sb().

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