Udostępnij za pośrednictwem


DbGeography.Distance(DbGeography) Metoda

Definicja

Oblicza odległość między najbliższymi punktami w tej wartości dbGeography a inną wartością dbGeography.

public:
 Nullable<double> Distance(System::Data::Spatial::DbGeography ^ other);
public double? Distance (System.Data.Spatial.DbGeography other);
member this.Distance : System.Data.Spatial.DbGeography -> Nullable<double>
Public Function Distance (other As DbGeography) As Nullable(Of Double)

Parametry

other
DbGeography

Wartość geograficzna, dla której należy obliczyć odległość od tej wartości.

Zwraca

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

Wyjątki

Dotyczy