ST_NDims

Updated at:

Returns the coordinate and dimension information.

Syntax

int2 ST_NDims(meshgeom geom);
int2 ST_NDims(sfmesh sfmeshObject);

Parameters

Parameter name

Description

geom

The meshgeom object.

sfmeshObject

The sfmesh object.

Description

This function returns the coordinate dimension of a meshgeom or sfmesh object. This function is the same as the ST_CoordDim function.

Examples

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