Constructs a geometry collection from Well Known Binary (WKB).
Syntax
NEW ST_GeomCollection(LONG BINARY wkb[, INT srid])
Parameters
wkb –
A string containing the binary representation of a geometry collection. 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_GeomCollection Returns an ST_GeomCollection value constructed from the source string.
Examples
Example 1 –
The following returns GeometryCollection (Point (10 20)).
SELECT NEW ST_GeomCollection(0x010700000001000000010100000000000000000024400000000000003440)