次の方法で共有


DbSpatialServices.Distance メソッド

定義

オーバーロード

Distance(DbGeography, DbGeography)

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

Distance(DbGeometry, DbGeometry)

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

Distance(DbGeography, DbGeography)

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

public abstract double Distance(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
abstract member Distance : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> double
Public MustOverride Function Distance (geographyValue As DbGeography, otherGeography As DbGeography) As Double

パラメーター

geographyValue
DbGeography

最初の geography 値。

otherGeography
DbGeography

2 番目の geography 値。

戻り値

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

例外

geographyValue または otherGeography が null です。

geographyValue または otherGeography は、この空間サービスの実装と互換性がありません。

適用対象

Distance(DbGeometry, DbGeometry)

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

public abstract double Distance(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member Distance : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> double
Public MustOverride Function Distance (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Double

パラメーター

geometryValue
DbGeometry

最初の geometry 値。

otherGeometry
DbGeometry

2 番目の geometry 値。

戻り値

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

例外

geometryValue または otherGeometry が null です。

geometryValue または otherGeometry は、この空間サービスの実装と互換性がありません。

適用対象