HasM (geography Data Type)

Returns 1 (true) if a spatial object contains at least one M value; otherwise, it returns 0 (false).

Syntax

.HasM()

Return Types

SQL Server return type: bit

CLR return type: Boolean

Examples

DECLARE @p GEOGRAPHY = 'Point(1 1 1 1)'
SELECT @p.HasM 
--Returns: 1 (true)

See Also

Reference

M (geography Data Type)

Other Resources

Extended Methods on Geography Instances