->WKT
geo
conversion
The ->WKT
function converts a GeoJSON STRING, WKB BYTES, a KML STRING, a GML STRING or a SHAPE to a WKT STRING.
This function accepts an optional boolean on top of the SHAPE to choose whether all cells are outputted or not. Defaults to false.
->WKT is available since version 2.7.0.
See also
Signatures
Examples
// Outputs the WKT covering the GeoShape
'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20)))'
10 false GEO.WKT
->WKT
// You can visualize the result at https://arthur-e.github.io/Wicket/sandbox-gmaps3.html
// Same thing but outputs all cells
'MULTIPOLYGON (((40 40, 20 45, 45 30, 40 40)), ((20 35, 10 30, 10 10, 30 5, 45 20, 20 35), (30 20, 20 15, 20 25, 30 20)))'
10 false GEO.WKT
true ->WKT
// You can visualize the result at https://arthur-e.github.io/Wicket/sandbox-gmaps3.html