Name

ST_ZMFlag — Restituisce un codice indicante le dimensioni ZM di una geometria.

Synopsis

smallint ST_ZMFlag(geometry geomA);

Descrizione

Restituisce un codice indicante le dimensioni ZM di una geometria.

Values are: 0 = 2D, 1 = 3D-M, 2 = 3D-Z, 3 = 4D.

Questa funzione supporta il 3d e non distrugge gli z-index.

Questo metodo supporta le Curve e le Circular String.

Esempi

SELECT ST_ZMFlag(ST_GeomFromEWKT('LINESTRING(1 2, 3 4)'));
0
SELECT ST_ZMFlag(ST_GeomFromEWKT('LINESTRINGM(1 2 3, 3 4 3)'));
1
SELECT ST_ZMFlag(ST_GeomFromEWKT('CIRCULARSTRING(1 2 3, 3 4 3, 5 6 3)'));
2
SELECT ST_ZMFlag(ST_GeomFromEWKT('POINT(1 2 3 4)'));
3