Name

ST_GeomCollFromText — Makes a collection Geometry from collection WKT with the given SRID. If SRID is not given, it defaults to 0.

Synopsis

geometry ST_GeomCollFromText(text WKT, integer srid);

geometry ST_GeomCollFromText(text WKT);

Descrizione

Makes a collection Geometry from the Well-Known-Text (WKT) representation with the given SRID. If SRID is not given, it defaults to 0.

OGC SPEC 3.2.6.2 - option SRID is from the conformance suite

Ritorna null se il WKT in input non è una GEOMETRYCOLLECTION

[Note]

Se si è sicuri che tutti i WKT in input sono effettivamente GEOMETRYCOLLECTION, è sconsigliato usare questa funzione. È più lenta di ST_GeomFromText perché effettua anche una validazione della geometria.

Questo metodo implementa le OGC Simple Features Implementation Specification for SQL 1.1.

s3.2.6.2

Questo metodo implementa la specifica SQL/MM.

Esempi

SELECT ST_GeomCollFromText('GEOMETRYCOLLECTION(POINT(1 2),LINESTRING(1 2, 3 4))');

Si veda anche

ST_GeomFromText, ST_SRID