ST_NDims — Restituisce la dimensione delle coordinate di una geometria.
integer ST_NDims(
geometry g1)
;
Returns the coordinate dimension of the geometry. PostGIS supports 2 - (x,y) , 3 - (x,y,z) or 2D with measure - x,y,m, and 4 - 3D with measure space x,y,z,m
Questa funzione supporta il 3d e non distrugge gli z-index.