ST_INTERSECTION

Sintassi

ST_INTERSECTION(g1,g2)

Spiegazione

MariaDB starting with 5.3.3

ST_INTERSECTION() è stata introdotta in MariaDB 5.3.3

Restituisce una geometria che è l'intersezione, o porzione condivisa, delle geometrie g1 e g2.

Esempi

SET @g1 = ST_GEOMFROMTEXT('POINT(2 1)');

SET @g2 = ST_GEOMFROMTEXT('LINESTRING(2 1, 0 2)');

SELECT ASTEXT(ST_INTERSECTION(@g1,@g2));
+----------------------------------+
| ASTEXT(ST_INTERSECTION(@g1,@g2)) |
+----------------------------------+
| POINT(2 1)                       |
+----------------------------------+

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.