Loading

->WKB

geo conversion

The ->WKB function converts a GeoJSON STRING, a WKT STRING or a SHAPE to WKB BYTES.

This function accepts an optional boolean on top of the SHAPE to choose whether all cells are outputted or not. Defaults to false.

->WKB 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 ->WKB