DbSpatialServices.Distance 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
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
이 공간 서비스 구현과 호환되지 않습니다.
적용 대상
Entity Framework