공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ui.Map.DrawingTools.toFeatureCollection
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
그리기 도구의 각 도형이 속성인 속성 컬렉션을 반환합니다.
사용 | 반환 값 |
---|
DrawingTools.toFeatureCollection(indexProperty) | FeatureCollection |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: ui.map.drawingtools | ui.Map.DrawingTools | ui.Map.DrawingTools 인스턴스입니다. |
indexProperty | 문자열 | 이 이름의 속성은 반환된 컬렉션의 모든 기능에 할당됩니다. 속성 값은 지오메트리가 속한 지오메트리 레이어의 색인에 해당하는 숫자입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eReturns a FeatureCollection where each drawn geometry is represented as a separate feature.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etoFeatureCollection()\u003c/code\u003e method takes an optional \u003ccode\u003eindexProperty\u003c/code\u003e argument, allowing you to assign a unique index to each feature based on its layer.\u003c/p\u003e\n"],["\u003cp\u003eAccess this functionality through the \u003ccode\u003eui.Map.DrawingTools\u003c/code\u003e instance, specifically using the DrawingTools object.\u003c/p\u003e\n"]]],["The `DrawingTools.toFeatureCollection` method converts drawn geometries into a FeatureCollection. It operates on a `ui.Map.DrawingTools` instance. The method accepts an `indexProperty` argument (a string). This property is added to each feature in the collection, and its value will reflect the index of the geometry layer where it was drawn. It returns a FeatureCollection object.\n"],null,["# ui.Map.DrawingTools.toFeatureCollection\n\n\u003cbr /\u003e\n\nReturns a feature collection in which each geometry in the drawing tools is a feature.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------|-------------------|\n| DrawingTools.toFeatureCollection`(indexProperty)` | FeatureCollection |\n\n| Argument | Type | Details |\n|-----------------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `ui.map.drawingtools` | ui.Map.DrawingTools | The ui.Map.DrawingTools instance. |\n| `indexProperty` | String | A property with this name will be assigned to every feature in the returned collection. The value of the property will be a number that corresponds to the index of the geometry layer to which the geometry belongs. |"]]