다음을 통해 공유


SqlSpatialServices.Distance 메서드

정의

오버로드

Distance(DbGeography, DbGeography)

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

Distance(DbGeometry, DbGeometry)

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

Distance(DbGeography, DbGeography)

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

public override double Distance(System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
override this.Distance : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> double
Public Overrides Function Distance (geographyValue As DbGeography, otherGeography As DbGeography) As Double

매개 변수

geographyValue
DbGeography

첫 번째 지리 값입니다.

otherGeography
DbGeography

두 번째 지리 값입니다.

반환

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

적용 대상

Distance(DbGeometry, DbGeometry)

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

public override double Distance(System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
override this.Distance : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> double
Public Overrides Function Distance (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Double

매개 변수

geometryValue
DbGeometry

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

otherGeometry
DbGeometry

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

반환

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

적용 대상