Skip to content

Latest commit

 

History

History
58 lines (44 loc) · 1.68 KB

asbinaryzm-geography-data-type.md

File metadata and controls

58 lines (44 loc) · 1.68 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic ms.custom f1_keywords helpviewer_keywords dev_langs monikerRange
AsBinaryZM (geography Data Type)
AsBinaryZM (geography Data Type)
MladjoA
mlandzic
03/14/2017
sql
t-sql
reference
ignite-2024
AsBinaryZM
AsBinaryZM_TSQL
AsBinaryZM, geography
AsBinaryZM
TSQL
=azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric

AsBinaryZM (geography Data Type)

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

Returns the Open Geospatial Consortium (OGC) Well-Known Binary (WKB) representation of a geometry instance augmented with any Z (elevation) and M (measure) values carried by the instance.

Syntax

  
.AsBinaryZM()  

Return Types

[!INCLUDEssNoVersion] return type: varbinary(max)

CLR return type: SqlBytes

Remarks

Examples

DECLARE @g1 GEOGRAPHY = 'Point(1 1 2 3)';  
  
SELECT @g1.STAsBinary();  
-- Returns: 0x0101000000000000000000F03F000000000000F03F  
  
SELECT @g1.AsBinaryZM();  
--Returns: 0x01B90B0000000000000000F03F000000000000F03F00000000000000400000000000000840  

See Also

Extended Methods on Geography Instances
M (geography Data Type)
Z (geography Data Type)