Returns the coordinate dimension of a geometry.
Valid Data Types
Any ST_Geometry type.
Result Type
Returns a SMALLINT value:
- 1, if the input geometry is 1D
- 2, if the input geometry is 2D
- 3, if the input geometry is 3D