Loading

->WKT

geo conversion

The ->WKT function converts a GeoJSON STRING, a WKB BYTES or a SHAPE to 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 GeoJSON 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 vizualize 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 vizualize the result at https://arthur-e.github.io/Wicket/sandbox-gmaps3.html