Earth Engine은 공유 컴퓨팅 리소스를 보호하고 모든 사용자에게 안정적인 성능을 보장하기 위해
비상업적 할당량 등급 을 도입했습니다. 비상업적 프로젝트는 기본적으로 커뮤니티 등급을 사용하지만 언제든지 프로젝트의 등급을 변경할 수 있습니다.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
의견 보내기
ee.Geometry.coveringGrid
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 도형을 포함하는 기능 모음을 반환합니다. 각 기능은 지정된 투영으로 정의된 그리드의 직사각형입니다.
사용 반환 값 Geometry. coveringGrid (proj, scale )FeatureCollection
인수 유형 세부정보 geometry도형 결과는 이 영역과 교차하는 그리드 셀입니다. proj투영 그리드를 구성할 투영입니다. 'geometry'와 교차하는 각 그리드 셀에 대해 특성이 생성됩니다. 여기서 셀 모서리는 투영에서 정수 값 위치에 있습니다. 투영이 미터 단위로 조정되면 점은 실제 크기 지점에서 해당 크기의 그리드에 표시됩니다. scale부동 소수점 수, 기본값: null 제공된 경우 투영의 스케일을 재정의합니다. 투영이 아직 조정되지 않은 경우 필요할 수 있습니다.
예
코드 편집기(JavaScript)
// Define the coordinate reference system (CRS) to be used for grid alignment.
// WGS 84 / UTM zone 36S.
var epsg = 'EPSG:32736' ;
// Create a point geometry to serve as the center for the analysis.
var point = ee . Geometry . Point ( 31.6 , - 8.54 );
Map . addLayer ( point , { color : 'orange' }, 'Center' );
Map . centerObject ( point , 8 );
// Create a circular buffer of 100,000 meters (100 km) around the point to
// define the study area.
var areaOfInterest = point . buffer ( 100000 );
Map . addLayer ( areaOfInterest , { color : 'purple' }, 'Area of interest' );
// Calculate a scale value to determine the size of the grid cells.
// Use a power of 2 for best GeoTIFF tiling, e.g., assuming that we'll use the
// grid cell to define image export regions, 2**14 -> 16384.
var scale = Math . pow ( 2 , 14 );
// Generate a FeatureCollection of grid cells that covers the buffered area
// using the specified projection and scale.
var grid = areaOfInterest . coveringGrid ({ proj : epsg , scale : scale });
Map . addLayer ( grid , { color : 'blue' }, 'Covering Grid' , true , 0.5 );
// Define the specific index string of the grid cell to be extracted.
var cellOfInterest = '18,551' ;
// Filter the grid collection to find the feature matching the index and
// retrieve it as an ee.Feature.
var feature =
ee . Feature ( grid . toList ( 10000 )
. filter ( ee . Filter . eq ( 'system:index' , cellOfInterest ))
. get ( 0 ));
Map . addLayer ( feature , { color : 'red' }, 'grid cell' , true , 0.5 );
// One common use of coveringGrid is to tile operations such as exports.
// This often involves iterating through grid cells on the client-side to
// submit tasks for each cell. Here we print each cell ID using evaluate().
print ( 'Grid cell IDs:' );
grid . aggregate_array ( 'system:index' ). evaluate ( function ( cellIds ) {
cellIds . forEach ( function ( cellId ) {
print ( cellId );
});
});
의견 보내기
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스 에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스 에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책 을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2026-05-23(UTC)
의견을 전달하고 싶나요?
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2026-05-23(UTC)"],[],["The `coveringGrid` function generates a `FeatureCollection` of rectangular grid cells that intersect a given `Geometry`. It uses a specified `Projection` to define the grid, with each cell represented as a feature. The grid's scale is determined by the projection, or overridden by an optional `scale` argument. The function returns cells where their corners are located at integer-valued positions within the specified `Projection`.\n"]]