Aracılığıyla paylaş


DbSpatialServices.Distance Yöntem

Tanım

İki değerdeki en yakın noktalar arasındaki uzaklığı hesaplar.

Aşırı Yüklemeler

Distance(DbGeography, DbGeography)

İki DbGeography değerdeki en yakın noktalar arasındaki uzaklığı hesaplar.

Distance(DbGeometry, DbGeometry)

İki DbGeometry değerdeki en yakın noktalar arasındaki uzaklığı hesaplar.

Distance(DbGeography, DbGeography)

İki DbGeography değerdeki en yakın noktalar arasındaki uzaklığı hesaplar.

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

Parametreler

geographyValue
DbGeography

İlk coğrafya değeri.

otherGeography
DbGeography

İkinci coğrafya değeri.

Döndürülenler

ve otherGeographyiçindeki en yakın iki nokta geographyValue arasındaki uzaklığı belirten çift değer.

Özel durumlar

geographyValue otherGeography

geographyValue otherGeography

Şunlara uygulanır

Distance(DbGeometry, DbGeometry)

İki DbGeometry değerdeki en yakın noktalar arasındaki uzaklığı hesaplar.

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

Parametreler

geometryValue
DbGeometry

İlk geometri değeri.

otherGeometry
DbGeometry

İkinci geometri değeri.

Döndürülenler

ve otherGeometryiçindeki en yakın iki nokta geometryValue arasındaki uzaklığı belirten çift değer.

Özel durumlar

geometryValue otherGeometry

geometryValue otherGeometry

Şunlara uygulanır