SqlGeography.EnvelopeCenter 方法 ()

 

返回一个点,该点可用作地域实例的边框圆的圆心。

命名空间:   Microsoft.SqlServer.Types
程序集:  Microsoft.SqlServer.Types(位于 Microsoft.SqlServer.Types.dll)

语法

[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography EnvelopeCenter()
public:
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
SqlGeography^ EnvelopeCenter()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member EnvelopeCenter : unit -> SqlGeography
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)>
Public Function EnvelopeCenter As SqlGeography

返回值

Type: Microsoft.SqlServer.Types.SqlGeography

一个指定边框圆的圆心的位置的 SqlGeography 值。

备注

为了确定该边框圆,实例中的每个点都描述为从地球中心到地球表面上该点的一个向量。 边框圆的中心点是通过平均所有向量计算出来的。 对于闭合的圆圈,polygon 实例或 linestring 实例,为第一个和最后一个点是只能使用一次。

此方法返回一个点。 如果用于 EnvelopeAngle, 、 EnvelopeCenter 方法返回的一个边框圆 SqlGeography 实例。

EnvelopeCenter 方法返回的一个边框圆 SqlGeography 实例,但结果不能保证能够产生最小的边框圆。 与此相反,SqlGeometry 数据类型方法 STEnvelope 在应用于 SqlGeometry 实例时可以保证返回最小的边框圆。

另请参阅

SqlGeography 类
Microsoft.SqlServer.Types 命名空间

返回页首