语言

SqlSpatialServices.Distance 方法

定义

重载

名称 说明
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

第二个地理值。

返回

一个双精度值,指定 geographyValue 和其他Geography 中两个最接近点之间的距离。

适用于

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 和其他Geometry 中两个最接近点之间的距离。

适用于