DbSpatialServices.Distance Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the distance between the closest points in two values.
Overloads
Distance(DbGeography, DbGeography) |
Computes the distance between the closest points in two DbGeography values. |
Distance(DbGeometry, DbGeometry) |
Computes the distance between the closest points in two DbGeometry values. |
Distance(DbGeography, DbGeography)
Computes the distance between the closest points in two DbGeography values.
public:
abstract double Distance(System::Data::Spatial::DbGeography ^ geographyValue, System::Data::Spatial::DbGeography ^ otherGeography);
public abstract double Distance (System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography otherGeography);
abstract member Distance : System.Data.Spatial.DbGeography * System.Data.Spatial.DbGeography -> double
Public MustOverride Function Distance (geographyValue As DbGeography, otherGeography As DbGeography) As Double
Parameters
- geographyValue
- DbGeography
The first geography value.
- otherGeography
- DbGeography
The second geography value.
Returns
A double value that specifies the distance between the two closest points in geographyValue
and otherGeography
.
Exceptions
geographyValue
otherGeography
geographyValue
otherGeography
Applies to
Distance(DbGeometry, DbGeometry)
Computes the distance between the closest points in two DbGeometry values.
public:
abstract double Distance(System::Data::Spatial::DbGeometry ^ geometryValue, System::Data::Spatial::DbGeometry ^ otherGeometry);
public abstract double Distance (System.Data.Spatial.DbGeometry geometryValue, System.Data.Spatial.DbGeometry otherGeometry);
abstract member Distance : System.Data.Spatial.DbGeometry * System.Data.Spatial.DbGeometry -> double
Public MustOverride Function Distance (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Double
Parameters
- geometryValue
- DbGeometry
The first geometry value.
- otherGeometry
- DbGeometry
The second geometry value.
Returns
A double value that specifies the distance between the two closest points in geometryValue
and otherGeometry
.
Exceptions
geometryValue
otherGeometry
geometryValue
otherGeometry
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om