DbSpatialServices.Distance Método

Definição

Calcula a distância entre os pontos mais próximos em dois valores.

Sobrecargas

Name Description
Distance(DbGeography, DbGeography)

Calcula a distância entre os pontos mais próximos em dois DbGeography valores.

Distance(DbGeometry, DbGeometry)

Calcula a distância entre os pontos mais próximos em dois DbGeometry valores.

Distance(DbGeography, DbGeography)

Calcula a distância entre os pontos mais próximos em dois DbGeography valores.

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

O primeiro valor geográfico.

otherGeography
DbGeography

O segundo valor geográfico.

Devoluções

Um valor duplo que especifica a distância entre os dois pontos mais próximos em geographyValue e otherGeography.

Exceções

geographyValue otherGeography

geographyValue otherGeography

Aplica-se a

Distance(DbGeometry, DbGeometry)

Calcula a distância entre os pontos mais próximos em dois DbGeometry valores.

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

O primeiro valor geométrico.

otherGeometry
DbGeometry

O segundo valor geométrico.

Devoluções

Um valor duplo que especifica a distância entre os dois pontos mais próximos em geometryValue e otherGeometry.

Exceções

geometryValue otherGeometry

geometryValue otherGeometry

Aplica-se a