Description
The ST_ToWKT
function returns a Well-Known Text (WKT) representation of a
geometry from the specified WritableGeometry instance.
Syntax
ST_ToWKT(WritableGeometry geometry)
Parameters
Parameter | Type | Description |
---|---|---|
geometry | WritableGeometry | The instance of a WritableGeometry. |
Return Values
Return Type | Description |
---|---|
String | The WKT representation of a geometry. |
Examples
SELECT ST_ToWKT(ST_Buffer(ST_GeomFromGeoJSON(t.geometry), 5.0, 'km', 12, 'SPHERICAL' )) FROM table t;