다음을 통해 공유


DbSpatialServices.Distance 메서드

정의

오버로드

Distance(DbGeography, DbGeography)

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

Distance(DbGeometry, DbGeometry)

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

Distance(DbGeography, DbGeography)

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

public abstract double Distance (System.Data.Entity.Spatial.DbGeography geographyValue, System.Data.Entity.Spatial.DbGeography otherGeography);
abstract member Distance : System.Data.Entity.Spatial.DbGeography * System.Data.Entity.Spatial.DbGeography -> double
Public MustOverride Function Distance (geographyValue As DbGeography, otherGeography As DbGeography) As Double

매개 변수

geographyValue
DbGeography

첫 번째 지리 값입니다.

otherGeography
DbGeography

두 번째 지리 값입니다.

반환

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

예외

geographyValue 또는otherGeography가 null입니다.

geographyValue 또는otherGeography 이 공간 서비스 구현과 호환되지 않습니다.

적용 대상

Distance(DbGeometry, DbGeometry)

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

public abstract double Distance (System.Data.Entity.Spatial.DbGeometry geometryValue, System.Data.Entity.Spatial.DbGeometry otherGeometry);
abstract member Distance : System.Data.Entity.Spatial.DbGeometry * System.Data.Entity.Spatial.DbGeometry -> double
Public MustOverride Function Distance (geometryValue As DbGeometry, otherGeometry As DbGeometry) As Double

매개 변수

geometryValue
DbGeometry

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

otherGeometry
DbGeometry

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

반환

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

예외

geometryValue 또는otherGeometry가 null입니다.

geometryValue 또는otherGeometry 이 공간 서비스 구현과 호환되지 않습니다.

적용 대상