Returns a SMALLINT value: 0, for a 0-dimensional geometry 1, for a 1D geometry 2, for a 2D geometry -1, if the input geometry is empty