ST_Polygon
This section contains reference documentation for the ST_Polygon function.
Returns a geometry type polygon object from Well-Known Text representation or extended (WKT).
This function only works for WKT formatted polygons.
Signature
ST_Polygon(wkt)
Usage Examples
These examples are based on the Streaming Quick Start.
This function doesn't accept values that represent non polygons. It will throw an exception if passed other primitives or geometries:
To create geometry objects for non polygons, see ST_GeomFromText.