Udostępnij za pośrednictwem


DbSpatialServices.Distance Metoda

Definicja

Oblicza odległość między najbliższymi punktami w dwóch wartościach.

Przeciążenia

Distance(DbGeography, DbGeography)

Oblicza odległość między najbliższymi punktami w dwóch DbGeography wartościach.

Distance(DbGeometry, DbGeometry)

Oblicza odległość między najbliższymi punktami w dwóch DbGeometry wartościach.

Distance(DbGeography, DbGeography)

Oblicza odległość między najbliższymi punktami w dwóch DbGeography wartościach.

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

Parametry

geographyValue
DbGeography

Pierwsza wartość geografii.

otherGeography
DbGeography

Druga wartość geografii.

Zwraca

Podwójna wartość określająca odległość między dwoma najbliższymi punktami w i geographyValueotherGeography.

Wyjątki

geographyValue otherGeography

geographyValue otherGeography

Dotyczy

Distance(DbGeometry, DbGeometry)

Oblicza odległość między najbliższymi punktami w dwóch DbGeometry wartościach.

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

Parametry

geometryValue
DbGeometry

Pierwsza wartość geometryczna.

otherGeometry
DbGeometry

Druga wartość geometryczna.

Zwraca

Podwójna wartość określająca odległość między dwoma najbliższymi punktami w i geometryValueotherGeometry.

Wyjątki

geometryValue otherGeometry

geometryValue otherGeometry

Dotyczy