15.10 - ST_CoordDim - Teradata Database

Teradata Database SQL Geospatial Types

prodname
Teradata Database
vrm_release
15.10
category
Programming Reference
featnum
B035-1181-151K

Returns the coordinate dimension of a geometry.

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
  • Any ST_Geometry type.

    The coordinate dimension is the same as the coordinate dimension of the spatial reference system for the ST_Geometry value.

       SELECT sample_shapes.shape.ST_CoordDim();