お知らせ:
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 | 文字列 | この名前のプロパティは、返されたコレクション内のすべてのフィーチャーに割り当てられます。プロパティの値は、ジオメトリが属するジオメトリ レイヤのインデックスに対応する数値になります。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は 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. |"]]