HasZ (geometry)

HasZ (geometry)#

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

Syntax#

.HasZ

Return type#

bit

Example#

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

See Also#