Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt

Use this file to discover all available pages before exploring further.

Returns the coordinate dimension of the geometry. ST_NDims

Signatures

ST_NDims(geom: Geometry)

Parameters

geom
Geometry
required
The input geometry.

Return type

An integer value.

Examples

SELECT ST_NDims(ST_GeomFromEWKT('POINT(1 1 2)'))
3
Spark SQL example with x,y coordinate:
SELECT ST_NDims(ST_GeomFromText('POINT(1 1)'))
2