DbSpatialServices.Distance 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Distance(DbGeography, DbGeography) |
计算两个 DbGeography 值中最接近的点之间的距离。 |
Distance(DbGeometry, DbGeometry) |
计算两个 DbGeometry 值中最接近的点之间的距离。 |
Distance(DbGeography, DbGeography)
计算两个 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
第一个地理值。
- otherGeography
- DbGeography
第二个地理值。
返回
一个双精度值,该值指定 geographyValue 和 otherGeography 中两个最近点之间的距离。
例外
geographyValue
或
otherGeography
为 null。
geographyValue
或
otherGeography
与此空间服务实现不兼容。
适用于
Distance(DbGeometry, DbGeometry)
计算两个 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
第一个几何图形值。
- otherGeometry
- DbGeometry
第二个几何图形值。
返回
一个双精度值,指定 geometryValue 和 otherGeometry 中两个最近点之间的距离。
例外
geometryValue
或
otherGeometry
为 null。
geometryValue
或
otherGeometry
与此空间服务实现不兼容。