Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Converts a WKT (Well Known Text) to a corresponding polygon memory form.
POLYGON
VARCHAR ST_Polygon(VARCHAR wkt) VARCHAR ST_PolyFromText(VARCHAR wkt) VARCHAR ST_PolygonFromText(VARCHAR wkt)
VARCHAR
MySQL > SELECT ST_AsText(ST_Polygon("POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))")); +------------------------------------------------------------------+ | st_astext(st_polygon('POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))')) | +------------------------------------------------------------------+ | POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0)) | +------------------------------------------------------------------+