NEW ST_Polygon(LONG VARCHAR text_representation[, INT srid])
Parameters
text_representation –
A string containing the text representation of a polygon. The input can be in any supported text input format, including Well Known Text (WKT) or Extended Well Known Text (EWKT).
srid –
The SRID of the result. If not specified, the default is 0.
Returns
ST_Polygon Returns an ST_Polygon value constructed from the source string.
Examples
Example 1 –
The following returns Polygon ((-5 -5, 5 -5, 0 5, -5 -5), (-2 -2, -2 0, 2 0, 2 -2, -2 -2)).