Bagikan melalui


DbSpatialServices.Distance Metode

Definisi

Menghitung jarak antara titik terdekat dalam dua nilai.

Overload

Distance(DbGeography, DbGeography)

Menghitung jarak antara titik terdekat dalam dua DbGeography nilai.

Distance(DbGeometry, DbGeometry)

Menghitung jarak antara titik terdekat dalam dua DbGeometry nilai.

Distance(DbGeography, DbGeography)

Menghitung jarak antara titik terdekat dalam dua DbGeography nilai.

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

Parameter

geographyValue
DbGeography

Nilai geografi pertama.

otherGeography
DbGeography

Nilai geografi kedua.

Mengembalikan

Nilai ganda yang menentukan jarak antara dua titik terdekat dalam geographyValue dan otherGeography.

Pengecualian

geographyValue otherGeography

geographyValue otherGeography

Berlaku untuk

Distance(DbGeometry, DbGeometry)

Menghitung jarak antara titik terdekat dalam dua DbGeometry nilai.

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

Parameter

geometryValue
DbGeometry

Nilai geometri pertama.

otherGeometry
DbGeometry

Nilai geometri kedua.

Mengembalikan

Nilai ganda yang menentukan jarak antara dua titik terdekat dalam geometryValue dan otherGeometry.

Pengecualian

geometryValue otherGeometry

geometryValue otherGeometry

Berlaku untuk