PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ lwgeom_to_wkt_varlena()

lwvarlena_t* lwgeom_to_wkt_varlena ( const LWGEOM geom,
uint8_t  variant,
int  precision 
)
Parameters
geomgeometry to convert to WKT
variantoutput format to use (WKT_ISO, WKT_SFSQL, WKT_EXTENDED)
precisionDouble precision

Definition at line 721 of file lwout_wkt.c.

722 {
724  if (!sb)
725  return NULL;
728  return output;
729 }
static uint8_t variant
Definition: cu_in_twkb.c:26
static uint8_t precision
Definition: cu_in_twkb.c:25
static stringbuffer_t * lwgeom_to_wkt_internal(const LWGEOM *geom, uint8_t variant, int precision)
Definition: lwout_wkt.c:676
lwvarlena_t * stringbuffer_getvarlenacopy(stringbuffer_t *s)
Definition: stringbuffer.c:151
void stringbuffer_destroy(stringbuffer_t *s)
Free the stringbuffer_t and all memory managed within it.
Definition: stringbuffer.c:85

References lwgeom_to_wkt_internal(), precision, stringbuffer_destroy(), stringbuffer_getvarlenacopy(), and variant.

Referenced by LWGEOM_asEWKT(), and LWGEOM_asText().

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