SqlGeography.STDistance(SqlGeography) メソッド

定義

SqlGeography インスタンス内のポイントと別のSqlGeography インスタンス内のポイント間の最短距離を返します。

[Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)]
public System.Data.SqlTypes.SqlDouble STDistance(Microsoft.SqlServer.Types.SqlGeography other);
[<Microsoft.SqlServer.Server.SqlMethod(IsDeterministic=true, IsPrecise=false)>]
member this.STDistance : Microsoft.SqlServer.Types.SqlGeography -> System.Data.SqlTypes.SqlDouble
Public Function STDistance (other As SqlGeography) As SqlDouble

パラメーター

other
SqlGeography

STDistance(SqlGeography)が呼び出されるインスタンス間の距離を測定する別の geography インスタンスです。 空のセットが指定されている場合、 STDistance(SqlGeography) は null を返します。

返品

SqlGeography インスタンスの空間参照 ID (SRID) が一致しない場合は null を返します。このメソッドを使用して、POINT (0 0) と POINT (180 0) の間の距離のように、対足的なポイント間の距離、または地球の反対側の連続するポイント間の距離を決定する場合、このメソッドは null を返します。

属性

適用対象