EnvelopeAngle (geography Data Type)
Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance
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( )
Note
To view Transact-SQL syntax for SQL Server 2014 (12.x) and earlier versions, see Previous versions documentation.
Return Types
SQL Server 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 SQL Server 2012 (11.x), this method has been extended to FullGlobe instances.
The hemisphere limitation applied to EnvelopeAngle()
in SQL Server 2008 (10.0.x) 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 )
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ