語言

SqlSpatialServices.Distance 方法

定義

多載

名稱 Description
Distance(DbGeography, DbGeography)

計算兩個值中最近點 DbGeography 之間的距離。

Distance(DbGeometry, DbGeometry)

計算兩個值中最近點 DbGeometry 之間的距離。

Distance(DbGeography, DbGeography)

計算兩個值中最近點 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

第一個地理值。

otherGeography
DbGeography

第二個地理值。

傳回

一個雙重值,指定地理中兩個最近點之間的距離。值與其他地理。

適用於

Distance(DbGeometry, DbGeometry)

計算兩個值中最近點 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

第一個幾何值。

otherGeometry
DbGeometry

第二個幾何值。

傳回

一個雙重值,指定 GeometryValue 與 otherGeometry 中兩個最近點之間的距離。

適用於