Dimension(g)

Returns the inherent dimension of the geometry value g. The result can
be -1, 0, 1, or 2. The meaning of these values is given in [HELP MBR
definition].

URL: http://dev.mysql.com/doc/refman/5.0/en/general-geometry-property-functions.html

