Constructs a linestring from Well Known Binary (WKB).
Syntax
NEW ST_LineString(LONG BINARY wkb[, INT srid])
Parameters
wkb –
A string containing the binary representation of a linestring. The input can be in any supported binary input format, including Well Known Binary (WKB) or Extended Well Known Binary (EWKB).
srid –
The SRID of the result. If not specified, the default is 0.
Returns
ST_LineString Returns an ST_LineString value constructed from the source string.
Examples
Example 1 –
The following returns LineString (0 0, 5 10).
SELECT NEW ST_LineString(0x0102000000020000000000000000000000000000000000000000000000000014400000000000002440)