geography インスタンスの外接する円の中心として使用できる点を返します。
名前空間: Microsoft.SqlServer.Types
アセンブリ: Microsoft.SqlServer.Types (Microsoft.SqlServer.Types.dll)
構文
'宣言
<SqlMethodAttribute(IsDeterministic := True, IsPrecise := False)> _
Public Function EnvelopeCenter As SqlGeography
'使用
Dim instance As SqlGeography
Dim returnValue As SqlGeography
returnValue = instance.EnvelopeCenter()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public SqlGeography EnvelopeCenter()
[SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)]
public:
SqlGeography^ EnvelopeCenter()
[<SqlMethodAttribute(IsDeterministic = true, IsPrecise = false)>]
member EnvelopeCenter : unit -> SqlGeography
public function EnvelopeCenter() : SqlGeography
戻り値
型: Microsoft.SqlServer.Types.SqlGeography
外接する円の中心の場所を示す SqlGeography 値です。
説明
外接する円を決めるため、インスタンスの各点が地球の中心から地表上の点へのベクトルとして記述されます。 外接する円の中心点は、すべてのベクトルの平均として計算されます。 polygon インスタンスまたは linestring インスタンスの閉じたループの場合、最初と最後の点は一度しか使用されません。
このメソッドは点を返します。 EnvelopeAngle と共に使用した場合、EnvelopeCenter メソッドは、SqlGeography インスタンスの外接する円を返します。
EnvelopeCenter メソッドは SqlGeography インスタンスの外接する円を返しますが、結果が最小の外接する円になることは保証されません。 一方、SqlGeometry データ型のメソッド STEnvelope は、SqlGeometry インスタンスに適用した場合に最小の境界ボックスを返すことが保証されます。