Supported Spatial Data Formats The Well-Known Text (WKT) representation of geometry values is designed for exchanging geometry data in ASCII form. The OpenGIS specification provides a Backus-Naur grammar that specifies the formal production rules for writing WKT values (see Section 11.4, “Spatial Data Types” ). Examples of WKT representations of geometry objects: The point coordinates are specified with no separating comma. This differs from the syntax for the SQL Point()  function, which requires a comma between the coordinates. Take care to use the syntax appropriate to the context of a given spatial operation. For example, the following statements both use  ST_X()  to extract the X-coordinate from a  Point  object. The first produces the object directly using the  Point()  function. The second uses a WKT representation converted to a  Point  with ST_GeomFromText() . The point coordinate pairs are separated by commas. Spatial functions such as  ST_MPointFromText()  and  ST_GeomFromText()  that accept WKT- format representations of  MultiPoint  values permit individual points within values to be surrounded by parentheses. For example, both of the following function calls are valid: 2058 •A  MultiLineString  with two  LineString  values: •A  MultiPolygon  with two  Polygon  values: •A  GeometryCollection  consisting of two  Point  values and one  LineString : MULTIPOLYGON(((0 0,10 0,10 10,0 10,0 0)),((5 5,7 5,7 7,5 7, 5 5))) MULTILINESTRING((10 10, 20 20), (15 15, 30 15)) ST_MPointFromText(’MULTIPOINT (1 1, 2 2, 3 3)’) ST_MPointFromText(’MULTIPOINT ((1 1), (2 2), (3 3))’) MULTIPOINT(0 0, 20 20, 60 60) POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7, 5 5)) LINESTRING(0 0, 10 10, 20 25, 50 60) mysql>  SELECT ST_X(ST_GeomFromText(’POINT(15 20)’)); +---------------------------------------+ | ST_X(ST_GeomFromText(’POINT(15 20)’)) | +---------------------------------------+ | 15 | +---------------------------------------+ mysql>  SELECT ST_X(Point(15, 20)); +---------------------+ | ST_X(POINT(15, 20)) | +---------------------+ | 15 | +---------------------+ POINT(15 20) •A  Point : •A  LineString  with four points: •A  Polygon  with one exterior ring and one interior ring: •A  MultiPoint  with three  Point  values: