공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Feature.distance
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
두 지형지물의 도형 간의 최소 거리를 반환합니다.
사용 | 반환 값 |
---|
Feature.distance(right, maxError, proj, spherical) | 부동 소수점 수 |
인수 | 유형 | 세부정보 |
---|
this: left | 요소 | 연산의 왼쪽 피연산자로 사용되는 도형이 포함된 지형지물입니다. |
right | 요소 | 연산의 오른쪽 피연산자로 사용되는 도형이 포함된 지형지물입니다. |
maxError | ErrorMargin, 기본값: null | 필요한 재프로젝션을 실행할 때 허용되는 최대 오류입니다. |
proj | 투영, 기본값: null | 작업을 실행할 프로젝션입니다. 지정하지 않으면 구형 좌표계에서 작업이 실행되고 선형 거리는 구체의 미터 단위로 표시됩니다. |
spherical | 불리언, 기본값: false | true이면 단위 구체에서 계산이 실행됩니다. false인 경우 지구의 평탄화를 고려하여 타원형으로 계산됩니다. proj가 지정되면 무시됩니다. 기본값은 false입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eMeasures the shortest distance between two geographical features.\u003c/p\u003e\n"],["\u003cp\u003eAccepts two features as input, along with optional parameters for error margin and projection.\u003c/p\u003e\n"],["\u003cp\u003eReturns the calculated distance as a floating-point number, representing the separation between the features.\u003c/p\u003e\n"],["\u003cp\u003eIf a projection is not specified, calculations default to a spherical coordinate system with distances in meters.\u003c/p\u003e\n"],["\u003cp\u003eAllows for specifying an error margin to manage the accuracy of calculations, particularly during reprojection.\u003c/p\u003e\n"]]],[],null,["# ee.Feature.distance\n\nReturns the minimum distance between the geometries of two features.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------------|---------|\n| Feature.distance`(right, `*maxError* `, `*proj* `, `*spherical*`)` | Float |\n\n| Argument | Type | Details |\n|--------------|----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `left` | Element | The feature containing the geometry used as the left operand of the operation. |\n| `right` | Element | The feature containing the geometry used as the right operand of the operation. |\n| `maxError` | ErrorMargin, default: null | The maximum amount of error tolerated when performing any necessary reprojection. |\n| `proj` | Projection, default: null | The projection in which to perform the operation. If not specified, the operation will be performed in a spherical coordinate system, and linear distances will be in meters on the sphere. |\n| `spherical` | Boolean, default: false | If true, the calculation will be done on the unit sphere. If false, the calculation will be elliptical, taking earth flattening into account. Ignored if proj is specified. Default is false. |"]]