Nome

ST_HasM — Checks if a geometry has an M (measure) dimension.

Sinossi

boolean ST_HasM(geometry geom);

Descrizione

Checks if the input geometry has an M (measure) dimension and returns a boolean value. If the geometry has an M dimension, it returns true; otherwise, it returns false.

Geometry objects with an M dimension typically represent measurements or additional data associated with spatial features.

This function is useful for determining if a geometry includes measure information.

Availability: 3.5.0

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

Questa funzione supporta le coordinate M.

Esempi

Code
SELECT ST_HasM('POINTM(1 2 3)');
Output
t
Code
SELECT ST_HasM('LINESTRING(0 0,1 1)');
Output
f
Figure
Geometry figure for visual-st-hasm-02

Si veda anche

ST_ZMFlag

ST_HasZ