Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.71 KB

m-geometry-data-type.md

File metadata and controls

60 lines (45 loc) · 1.71 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom f1_keywords helpviewer_keywords dev_langs
M (geometry Data Type)
M (geometry Data Type)
MladjoA
mlandzic
08/03/2017
sql
t-sql
reference
ignite-2024
M (geometry Data Type)
M_TSQL
M (geometry Data Type)
TSQL

M (geometry Data Type)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance FabricSQLDB]

The M (measure) value of the geometry instance. The semantics of the measure value are user-defined.

Syntax

  
.M  

Arguments

Return Types

[!INCLUDEssNoVersion] type: float

CLR type: SqlDouble

Remarks

The value of this property is null if the geometry instance is not a Point, as well as for any Point instance for which it is not set.

This property is read-only.

M values are not used in any calculations made by the library and will not be carried through any library calculations.

Examples

The following example creates a Point instance with Z (elevation) and M (measure) values and uses M to fetch the M value of the instance.

DECLARE @g geometry;  
SET @g = geometry::STGeomFromText('POINT(1 2 3 4)', 0);  
SELECT @g.M;  

See Also

Extended Methods on Geometry Instances
Z (geometry Data Type)
AsTextZM (geometry Data Type)