Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 2.11 KB

envelopeangle-geography-data-type.md

File metadata and controls

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

EnvelopeAngle (geography Data Type)

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

Returns the maximum angle between the point returned by EnvelopeCenter() and a point in the geography instance in degrees.

This geography data type method supports FullGlobe instances or spatial instances that are larger than a hemisphere.

Syntax

  
EnvelopeAngle( )  

Return Types

[!INCLUDEssNoVersion] return type: float

CLR return type: SqlDouble

Remarks

This method returns a point in the geography instance in degrees. When used with EnvelopeCenter(), EnvelopeAngle() returns a bounding circle of a geography instance.

In [!INCLUDEssSQL11], this method has been extended to FullGlobe instances.

The hemisphere limitation applied to EnvelopeAngle() in [!INCLUDEsql2008-md] has been removed. However, for instances with angles greater than 90 degrees, 180 degrees will be returned. EnvelopeAngle() is not precise for geography instances that span more than one hemisphere.

Examples

DECLARE @g geography = 'LINESTRING(-120 45, -120 0, -90 0)';   
SELECT @g.EnvelopeAngle();  

See Also

Extended Methods on Geography Instances
EnvelopeCenter (geography Data Type )