Constructs a multi polygon from a text representation.
NEW ST_MultiPolygon(text-representation[, srid])
text-representation
LONG VARCHAR
A string containing the text representation of a multi polygon. The input can be in any supported text input format, including WKT or EWKT.
srid
INT
The SRID of the result. If not specified, the default is 0.
Constructs a multi polygon from a character string representation. The database server determines the input format by inspecting the provided string.
SQL/MM (ISO/IEC 13249-3: 2006) 9.6.2
The following returns MultiPolygon (((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 2, 2 2, 2 -2, -2 -2)), ((10 -5, 15 5, 5 5, 10 -5)))
SELECT NEW ST_MultiPolygon('MultiPolygon (((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 2, 2 2, 2 -2, -2 -2)), ((10 -5, 15 5, 5 5, 10 -5)))')