SqlSpatialServices.Distance Method
Computes the distance between the closest points in two specified values.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() | Distance(DbGeography, DbGeography) | Computes the distance between the closest points in two DbGeography values.(Overrides DbSpatialServices.Distance(DbGeography, DbGeography).) |
![]() | Distance(DbGeometry, DbGeometry) | Computes the distance between the closest points in two DbGeometry values.(Overrides DbSpatialServices.Distance(DbGeometry, DbGeometry).) |
SqlSpatialServices.Distance Method (DbGeography, DbGeography)
Computes the distance between the closest points in two DbGeography values.
Parameters
- geographyValue
-
Type:
System.Data.Entity.Spatial.DbGeography
The first geography value.
- otherGeography
-
Type:
System.Data.Entity.Spatial.DbGeography
The second geography value.
Return Value
Type: System.DoubleA double value that specifies the distance between the two closest points in geographyValue and otherGeography.
SqlSpatialServices.Distance Method (DbGeometry, DbGeometry)
Computes the distance between the closest points in two DbGeometry values.
Parameters
- geometryValue
-
Type:
System.Data.Entity.Spatial.DbGeometry
The first geography value.
- otherGeometry
-
Type:
System.Data.Entity.Spatial.DbGeometry
The second geography value.
Return Value
Type: System.DoubleA double value that specifies the distance between the two closest points in geographyValue and otherGeography.