HasM (geometry DataType)

APPLIES TO: yesSQL Server yesAzure SQL Database noAzure Synapse Analytics (SQL DW) noParallel Data Warehouse

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

Remarks

Examples

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

See Also

Extended Methods on Geometry Instances
M (geometry Data Type)