Топ-100
 
CerebroSQL

ST_DIMENSION

Database: MySQL

68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f32716d366b2f7374796c65

Topic

ST_Dimension(g)

Returns the inherent dimension of the geometry value g. The dimension
can be ?1, 0, 1, or 2. The meaning of these values is given in
https://dev.mysql.com/doc/refman/8.0/en/gis-class-geometry.html.

ST_Dimension() handles its arguments as described in the introduction
to this section.

URL: https://dev.mysql.com/doc/refman/8.0/en/gis-general-property-functions.html

Example

mysql> SELECT ST_Dimension(ST_GeomFromText('LineString(1 1,2 2)'));
+------------------------------------------------------+
| ST_Dimension(ST_GeomFromText('LineString(1 1,2 2)')) |
+------------------------------------------------------+
| 1 |
+------------------------------------------------------+