This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

DIMENSION

Sintassi

Dimension(g)

Spiegazione

Restituisce le dimensioni del valore geometrico g. Il risultato può essere:

ValoreSignificato
-1geometria vuota
0geometria senza lunghezza o area
1geometria senza area ma lunghezza maggiore di zero
2geometria con area maggiore di zero

Esempi

MariaDB [(none)]> SELECT Dimension(GeomFromText('LineString(1 1,2 2)'));
+------------------------------------------------+
| Dimension(GeomFromText('LineString(1 1,2 2)')) |
+------------------------------------------------+
|                                              1 |
+------------------------------------------------+
1 row in set (0.00 sec)
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.