ST_INTERSECTION()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Enterprise Server
Topics on this page:
Overview
A description for this Function has not yet been added to this Documentation.
EXAMPLES
SET @ls1 = ST_GeomFromText('LineString(1 0, 5 5)');
SET @ls2 = ST_GeomFromText('LineString(2 0, 2 5)');
SELECT ST_AsText(ST_Intersection(@ls1, @ls2));
+----------------------------------------+
| ST_AsText(ST_Intersection(@ls1, @ls2)) |
+----------------------------------------+
| POINT(2 1.25) |
+----------------------------------------+
SET @ls1 = ST_GeomFromText('LineString(1 0, 5 5)');
SET @ls2 = ST_GeomFromText('LineString(0 0, 2 5)');
SELECT ST_AsText(ST_Intersection(@ls1, @ls2));
+----------------------------------------+
| ST_AsText(ST_Intersection(@ls1, @ls2)) |
+----------------------------------------+
| GEOMETRYCOLLECTION EMPTY |
+----------------------------------------+
CHANGE HISTORY
EXTERNAL REFERENCES
Additional information on this topic may be found in the MariaDB Public Knowledge Base.