Share via


DbSpatialServices.Distance Método

Definición

Calcula la distancia entre puntos más cercanos de dos valores.

Sobrecargas

Distance(DbGeography, DbGeography)

Calcula la distancia entre puntos más cercanos de dos valores de DbGeography .

Distance(DbGeometry, DbGeometry)

Calcula la distancia entre puntos más cercanos de dos valores de DbGeometry .

Distance(DbGeography, DbGeography)

Calcula la distancia entre puntos más cercanos de dos valores de DbGeography .

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

Parámetros

geographyValue
DbGeography

Primer valor de geografía.

otherGeography
DbGeography

Segundo valor de geografía.

Devoluciones

Un valor double que especifica la distancia entre los dos puntos más cercanos de geographyValue y de otherGeography.

Excepciones

geographyValue otherGeography

geographyValue otherGeography

Se aplica a

Distance(DbGeometry, DbGeometry)

Calcula la distancia entre puntos más cercanos de dos valores de DbGeometry .

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

Parámetros

geometryValue
DbGeometry

Primer valor de geometría.

otherGeometry
DbGeometry

Segundo valor de geometría.

Devoluciones

Un valor double que especifica la distancia entre los dos puntos más cercanos de geometryValue y de otherGeometry.

Excepciones

geometryValue otherGeometry

geometryValue otherGeometry

Se aplica a