Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.08 KB

File metadata and controls

48 lines (36 loc) · 1.08 KB
title HasZ (geometry DataType)
description HasZ (geometry DataType)
author MladjoA
ms.author mlandzic
ms.date 05/05/2017
ms.service sql
ms.subservice t-sql
ms.topic reference
ms.custom
ignite-2024
helpviewer_keywords
HasZ geometry
dev_langs
TSQL

HasZ (geometry DataType)

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

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

Syntax

  
.HasZ  

Return Types

[!INCLUDEssNoVersion] return type: bit

CLR return type: Boolean

Remarks

Examples

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

See Also

Extended Methods on Geometry Instances
Z (geometry Data Type)