ST_NDims
Updated at:
Returns the coordinate dimension of a meshgeom or sfmesh object as an int2 value. Equivalent to ST_CoordDim.
Syntax
int2 ST_NDims(meshgeom geom);
int2 ST_NDims(sfmesh sfmesh);Parameters
| Parameter | Description |
|---|---|
geom | The meshgeom object. |
sfmesh | The sfmesh object. |
Example
SELECT ST_NDims('MESHGEOM(PATCH(INDEXSURFACE M(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom);Output:
st_ndims
----------
3Is this page helpful?