Description\n-----------\n\nGIS stands for Geographic Information System.\n\nMySQL operates on spatial data based on the OpenGIS standards, particularly the OpenGIS SFS (Simple feature access, SQL option).\n\nInitial support was based on version 05-134 of the standard. MariaDB implements a subset of the 'SQL with Geometry Types' environment proposed by the OGC. And the SQL environment was extended with a set of geometry types.\n\nMariaDB supports spatial extensions to operate on spatial features. These features are available for Aria, MyISAM, InnoDB, NDB, and ARCHIVE tables.\n\nFor spatial columns, Aria and MyISAM supports both SPATIAL and non-SPATIAL indexes. Other storage engines support non-SPATIAL indexes.\n\nWe aim at meeting the OpenGIS requirements. One thing missed in previous MariaDB versions is that the functions which check spatial relations didn't consider the actual shape of an object, instead they operate only on their bounding rectangles. These legacy functions have been left as they are and new, properly-working functions are named with an 'ST_' prefix, in accordance with the latest OpenGIS requirements. Also, operations over geometry features were added.\n\nSpatial Operators\n\nSpatial operators produce new geometries.\n\n| Name                                                                                                            | Description                                                                    |\n| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |\n| ST_UNION(A, B)                 | union of A and B                                                               |\n| ST_INTERSECTION(A, B)   | intersection of A and B                                                        |\n| ST_SYMDIFFERENCE(A, B) | symdifference, notintersecting parts of A and B                                |\n| ST_BUFFER(A, radius)          | returns the shape of the area that lies in 'radius' distance from the shape A. |\n\nPredicates\n\nPredicates return a boolean result of the relationship.\n\n| Name                                                                                                   | Description                     |\n| ------------------------------------------------------------------------------------------------------ | ------------------------------- |\n| ST_INTERSECTS(A, B) | if A and B have an intersection |\n| ST_CROSSES(A, B)       | if A and B cross                |\n| ST_EQUALS(A, B)         | if A and B are equal            |\n| ST_WITHIN(A, B)         | if A lies within B              |\n| ST_CONTAINS(A,B)      | if B lies within A              |\n| ST_DISJOINT(A,B)      | if A and B have no intersection |\n| ST_TOUCHES(A,B)        | if A touches B                  |\n\nURL: https://mariadb.com/docs/server/reference/sql-structure/geometry/gis-features-in-533