ST_DISTANCE

MariaDB starting with 5.3.3

ST_DISTANCE() was introduced in MariaDB 5.3.3.

Syntax

ST_DISTANCE(g1,g2)

Description

Returns the distance between two geometries, or null if not given valid inputs.

Example

SELECT ST_Distance(POINT(1,2),POINT(2,2));
+------------------------------------+
| ST_Distance(POINT(1,2),POINT(2,2)) |
+------------------------------------+
|                                  1 |
+------------------------------------+

Comments

Comments loading...