Description
The ST_ToWKB
function returns a byte array in a Well-Known Binary (WKB)
representation of a geometry as parsed from the specified WritableGeometry
instance.
Syntax
ToWKB(WritableGeometry geometry)
Parameters
Parameter |
Type |
Description |
geometry
|
WritableGeometry |
The instance of a WritableGeometry. |
Return Values
Return Type |
Description |
Byte[ ] |
The WKB representation of a geometry expressed as a byte array. |
Examples
SELECT ST_ToWKB(ST_Buffer(ST_GeomFromGeoJSON(t.geometry), 5.0, 'km', 12, 'SPHERICAL' )) FROM table t;