다음을 통해 공유


DbSpatialServices.Distance 메서드

정의

두 값에서 가장 가까운 점 사이의 거리를 계산합니다.

오버로드

Distance(DbGeography, DbGeography)

DbGeography 값에서 가장 가까운 점 사이의 거리를 계산합니다.

Distance(DbGeometry, DbGeometry)

DbGeometry 값에서 가장 가까운 점 사이의 거리를 계산합니다.

Distance(DbGeography, DbGeography)

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

매개 변수

geographyValue
DbGeography

첫 번째 지리 값입니다.

otherGeography
DbGeography

두 번째 지리 값입니다.

반환

geographyValueotherGeography에서 가장 가까운 두 점 사이의 거리를 지정하는 double 값입니다.

예외

geographyValue otherGeography

geographyValue otherGeography

적용 대상

Distance(DbGeometry, DbGeometry)

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

매개 변수

geometryValue
DbGeometry

첫 번째 기하 도형 값입니다.

otherGeometry
DbGeometry

두 번째 기하 도형 값입니다.

반환

geometryValueotherGeometry에서 가장 가까운 두 점 사이의 거리를 지정하는 double 값입니다.

예외

geometryValue otherGeometry

geometryValue otherGeometry

적용 대상