次の方法で共有


SqlSpatialServices.Distance メソッド

定義

オーバーロード

Distance(DbGeography, DbGeography)

2 つの DbGeography 値の最も近いポイント間の距離を計算します。

Distance(DbGeometry, DbGeometry)

2 つの DbGeometry 値の最も近いポイント間の距離を計算します。

Distance(DbGeography, DbGeography)

2 つの DbGeography 値の最も近いポイント間の距離を計算します。

public override double Distance(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
override this.Distance : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> double
Public Overrides Function Distance (geographyValue As DbGeography, otherGeography As DbGeography) As Double

パラメーター

geographyValue
DbGeography

最初の geography 値。

otherGeography
DbGeography

2 番目の geography 値。

戻り値

geographyValue と otherGeography の 2 つの最も近いポイント間の距離を指定する double 値。

適用対象

Distance(DbGeometry, DbGeometry)

2 つの DbGeometry 値の最も近いポイント間の距離を計算します。

public override double Distance(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
override this.Distance : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> double
Public Overrides Function Distance (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Double

パラメーター

geometryValue
DbGeometry

最初の geometry 値。

otherGeometry
DbGeometry

2 番目の geometry 値。

戻り値

geometryValue と otherGeometry の 2 つの最も近いポイント間の距離を指定する double 値。

適用対象