DbSpatialServices.Distance Metodo

Definizione

Calcola la distanza tra i punti più vicini in due valori.

Overload

Nome Descrizione
Distance(DbGeography, DbGeography)

Calcola la distanza tra i punti più vicini in due DbGeography valori.

Distance(DbGeometry, DbGeometry)

Calcola la distanza tra i punti più vicini in due DbGeometry valori.

Distance(DbGeography, DbGeography)

Calcola la distanza tra i punti più vicini in due DbGeography valori.

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

Parametri

geographyValue
DbGeography

Primo valore geografico.

otherGeography
DbGeography

Secondo valore geografico.

Valori restituiti

Valore double che specifica la distanza tra i due punti più vicini in geographyValue e otherGeography.

Eccezioni

geographyValue otherGeography

geographyValue otherGeography

Si applica a

Distance(DbGeometry, DbGeometry)

Calcola la distanza tra i punti più vicini in due DbGeometry valori.

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

Parametri

geometryValue
DbGeometry

Primo valore di geometria.

otherGeometry
DbGeometry

Secondo valore di geometria.

Valori restituiti

Valore double che specifica la distanza tra i due punti più vicini in geometryValue e otherGeometry.

Eccezioni

geometryValue otherGeometry

geometryValue otherGeometry

Si applica a