https://dev.mysql.com/gis-mysql-specific-functions.html
LineString(pt [, pt] ...) Constructs a LineString value from a number of Point or WKB Point arguments. MultiLineString(ls [, ls] ...) Constructs a MultiLineString value using LineString or WKB LineString arguments. Polygon(ls [, ls] ...) Constructs ... MySQL provides a set of useful nonstandard functions for creating geometry ...
https://dev.mysql.com/gis-geometry-class-hierarchy.html
The geometry classes define a hierarchy as follows: Geometry (noninstantiable) Point (instantiable) Curve (noninstantiable) LineString (instantiable) Line LinearRing Surface (noninstantiable) Polygon (instantiable) GeometryCollection (instantiable) ...All classes have properties, and instantiable classes may also have assertions (rules that define valid class ...
https://dev.mysql.com/gis-polygon-property-functions.html
Such components are extracted and made into a single MultiPolygon, MultiLineString, or MultiPoint for centroid computation. mysql> SET @poly = ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0),(5 5,7 5,7 7,5 7,5 5))'); mysql> SELECT ... Functions ...
https://dev.mysql.com/populating-spatial-columns.html
After you have created spatial columns, you can populate them with spatial data. Values should be stored in internal geometry format, but you can convert them to that format from either Well-Known Text (WKT) or Well-Known Binary (WKB) format. For ...
https://dev.mysql.com/gis-class-geometry.html
Geometry values of types (LineString, MultiPoint, MultiLineString) are either simple or nonsimple. Geometry values of types (LineString, MultiString) are either closed or not closed. The dimensions of MultiPoint, MultiLineString, and MultiPolygon ...
https://dev.mysql.com/optimizing-spatial-analysis.html
For a horizontal or a vertical linestring, the MBR is a rectangle degenerated into the linestring. For MyISAM and InnoDB tables, search operations in columns containing spatial data can be optimized using SPATIAL indexes. The most typical ...
https://dev.mysql.com/gis-geometrycollection-property-functions.html
mysql> SET @gc = 'GeometryCollection(Point(1 1),LineString(2 2, 3 3))'; mysql> SELECT ST_AsText(ST_GeometryN(ST_GeomFromText(@gc),1)); +-------------------------------------------------+ | ST_AsText(ST_GeometryN(ST_GeomFromText(@gc),1)) | ...Unless ...
https://dev.mysql.com/spatial-type-overview.html
Some spatial data types hold single geometry values: GEOMETRY POINT LINESTRING POLYGON GEOMETRY can store geometry values of any type. The other single-value types (POINT, LINESTRING, and POLYGON) restrict their values to a particular geometry type.
https://dev.mysql.com/geometry-well-formedness-validity.html
For geometry values, MySQL distinguishes between the concepts of syntactically well-formed and geometrically valid. Spatial import functions that parse WKT or WKB values raise an error for attempts to create a geometry that is not syntactically ...
https://dev.mysql.com/gis-class-multilinestring.html
A MultiLineString is a MultiCurve geometry collection composed of LineString elements. MultiLineString Examples On a region map, a MultiLineString could represent a river system or a highway system.