ST_MSize — Returns the M size of a geometry.
float ST_MSize(geometry geom);
Returns the M size of a geometry, computed as ST_MMax(geom) - ST_MMin(geom), or null if the geometry lacks M values.
该函数支持 3d 并且不会丢失 z-index。
此方法支持圆形字符串和曲线。
Availability: 3.7.0
SELECT ST_MSize('LINESTRING M (1 2 3, 4 6 8)');
5