공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.ImageCollection.distance
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
각 픽셀이 픽셀 중심에서 컬렉션의 가장 가까운 Point, LineString 또는 다각형 경계까지의 거리(미터)인 DOUBLE 이미지를 생성합니다. 다각형 내부에서도 거리가 측정됩니다. 기하 도형의 'searchRadius' 미터 내에 있지 않은 픽셀은 마스크 처리됩니다.
거리는 구체에서 계산되므로 각 픽셀과 가장 가까운 지오메트리 간의 위도 차이에 비례하는 작은 오류가 있습니다.
사용 | 반환 값 |
---|
ImageCollection.distance(searchRadius, maxError) | 이미지 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: features | FeatureCollection | 픽셀 거리를 계산하는 데 사용되는 특성을 가져올 특성 컬렉션입니다. |
searchRadius | 부동 소수점 수, 기본값: 100000 | 각 픽셀에서 가장자리를 찾을 최대 거리(미터)입니다. 이 거리 내에 가장자리가 없으면 픽셀이 마스크 처리됩니다. |
maxError | 부동 소수점, 기본값: 100 | 미터 단위의 최대 재투영 오류입니다. 입력 폴리라인에 재투영이 필요한 경우에만 사용됩니다. '0'이 제공되면 프로젝션이 필요한 경우 이 작업이 실패합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eCalculates the distance from each pixel to the nearest geometry (point, line, or polygon) in a collection, measured in meters.\u003c/p\u003e\n"],["\u003cp\u003eOutput is a double image where pixel values represent distances, masked for pixels beyond a specified search radius.\u003c/p\u003e\n"],["\u003cp\u003eDistances are calculated on a sphere, introducing minor errors based on latitude differences.\u003c/p\u003e\n"],["\u003cp\u003eAccepts a FeatureCollection as input and offers parameters to control search radius and reprojection error.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.distance\n\nProduces a DOUBLE image where each pixel is the distance in meters from the pixel center to the nearest Point, LineString, or polygonal boundary in the collection. Note distance is also measured within interiors of polygons. Pixels that are not within 'searchRadius' meters of a geometry will be masked out.\n\n\u003cbr /\u003e\n\nDistances are computed on a sphere, so there is a small error proportional to the latitude difference between each pixel and the nearest geometry.\n\n| Usage | Returns |\n|-------------------------------------------------------------|---------|\n| ImageCollection.distance`(`*searchRadius* `, `*maxError*`)` | Image |\n\n| Argument | Type | Details |\n|------------------|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `features` | FeatureCollection | Feature collection from which to get features used to compute pixel distances. |\n| `searchRadius` | Float, default: 100000 | Maximum distance in meters from each pixel to look for edges. Pixels will be masked unless there are edges within this distance. |\n| `maxError` | Float, default: 100 | Maximum reprojection error in meters, only used if the input polylines require reprojection. If '0' is provided, then this operation will fail if projection is required. |"]]