PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ gserialized_to_string()

char* gserialized_to_string ( const GSERIALIZED g)

Return a WKT representation of the gserialized geometry.

Caller is responsible for disposing of the char*.

Definition at line 193 of file g_serialized.c.

References lwgeom_from_gserialized(), lwgeom_to_wkt(), and WKT_ISO.

194 {
195  return lwgeom_to_wkt(lwgeom_from_gserialized(g), WKT_ISO, 12, 0);
196 }
char * lwgeom_to_wkt(const LWGEOM *geom, uint8_t variant, int precision, size_t *size_out)
WKT emitter function.
Definition: lwout_wkt.c:669
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
#define WKT_ISO
Definition: liblwgeom.h:2083
Here is the call graph for this function: