DbSpatialServices.Distance Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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