DbSpatialServices.Distance Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Beräknar avståndet mellan de närmaste punkterna i två värden.
Överlagringar
| Name | Description |
|---|---|
| Distance(DbGeography, DbGeography) |
Beräknar avståndet mellan de närmaste punkterna i två DbGeography värden. |
| Distance(DbGeometry, DbGeometry) |
Beräknar avståndet mellan de närmaste punkterna i två DbGeometry värden. |
Distance(DbGeography, DbGeography)
Beräknar avståndet mellan de närmaste punkterna i två DbGeography värden.
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
Parametrar
- geographyValue
- DbGeography
Det första geografivärdet.
- otherGeography
- DbGeography
Det andra geografivärdet.
Returer
Ett dubbelt värde som anger avståndet mellan de två närmaste punkterna i geographyValue och otherGeography.
Undantag
geographyValue
otherGeography
geographyValue
otherGeography
Gäller för
Distance(DbGeometry, DbGeometry)
Beräknar avståndet mellan de närmaste punkterna i två DbGeometry värden.
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
Parametrar
- geometryValue
- DbGeometry
Det första geometrivärdet.
- otherGeometry
- DbGeometry
Det andra geometrivärdet.
Returer
Ett dubbelt värde som anger avståndet mellan de två närmaste punkterna i geometryValue och otherGeometry.
Undantag
geometryValue
otherGeometry
geometryValue
otherGeometry