ST_Dimension Method | Geospatial Data Types | Teradata Vantage - 17.10 - ST_Dimension Method - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Geospatial Data Types

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

Returns the dimension of the ST_Geometry type.

Valid Data Types

All ST_Geometry types.

Result Type

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