Description
The ST_FromWKB
function returns a WritableGeometry
instance from a Well-Known Binary (WKB) representation of a geometry.
Syntax
ST_FromWKB(String geometry, [SpatialInfo CRS])
Parameters
Parameter | Type | Description |
---|---|---|
geometry | String |
The WKB of the geometry in byte array format (byte[ ]) . |
CRS | String | Optional. The coordinate system for the geometry. Default = EPSG:4326 |
Return Values
Return Type | Description |
---|---|
WritableGeometry | The geometry from WKB format. |
Examples
SELECT ST_GeomFromWKB(unhex('010100000000000000000024400000000000002440'), 'epsg:4326');