Name

ST_GeomCollFromWKB — Returns a GeometryCollection object given its Well-known binary Representation

Synopsis

geometry ST_GeomCollFromWKB(bytea WKB);

geometry ST_GeomCollFromWKB(bytea WKB, integer SRID);

Alias

GeomCollFromWKB

Description

Creates a GeometryCollection from well-known binary representation of a GeometryCollection and a Spatial Reference System ID (SRID). If the SRID is not provides it defaults to -1. If WKB passed in is not a GeometryCollection, NULL is returned.

Coordinate Dimensions
2D3DM
Spatial Standards Support
OGC SFS for SQL. 1.1 (1999)OGC SFS for SQL. 1.1.0 (2005)OGC SFS for SQL. 1.2.0 (2006)SQL-MM Part 3
3.2.7.27.2.7.1-9.1.7

Examples

SELECT ST_GeomCollFromWKB(ST_GeomFromText('GEOMETRYCOLLECTION(POINT (5 5 10),LINESTRING (0 0 10, 0 50 10))'));

Related functions

ST_GeomFromWKB