This topic describes the ST_NDims function. This function returns the dimension of the coordinate values of an object.
構文
int2 ST_NDims(meshgeom geom);
int2 ST_NDims(sfmesh sfmesh);
パラメーター
項目 | 説明 |
geom | The meshgeom object. |
sfmesh | The sfmesh object. |
説明
This function returns the dimension of the coordinate values of a meshgeom or sfmesh object. This function works the same as the ST_CoordDim function.
例
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);
-------------
3