ST_NDims(geom: Geometry)
SELECT ST_NDims(ST_GeomFromEWKT('POINT(1 1 2)'))
3
SELECT ST_NDims(ST_GeomFromText('POINT(1 1)'))
2
Was this page helpful?