お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.data.createAsset
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
JSON 値からアセットを作成します。空の画像コレクションまたはフォルダを作成するには、値が ee.data.AssetType.* のいずれかである「type」キーを含む「value」オブジェクトを渡します。(「ImageCollection」や「Folder」など)。
生成された ID を含む、保存されたアセットの説明を返します。コールバックが指定されている場合は null を返します。
用途 | 戻り値 |
---|
ee.data.createAsset(value, path, force, properties, callback) | オブジェクト |
引数 | タイプ | 詳細 |
---|
value | オブジェクト | 作成するアセットを記述するオブジェクト。 |
path | 文字列、省略可 | 目的の ID(フルパスを含む)(省略可)。 |
force | ブール値、省略可 | 強制的に上書きします。 |
properties | オブジェクト、省略可 | 設定するプロパティのキーと値 |
callback | 関数(省略可) | オプションのコールバック。指定しない場合、呼び出しは同期的に行われます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-26 UTC。
[null,null,["最終更新日 2025-07-26 UTC。"],[[["\u003cp\u003eGenerates an Earth Engine asset from a JSON object, enabling the creation of image collections, folders, or other asset types.\u003c/p\u003e\n"],["\u003cp\u003eAllows specification of an asset ID, optional overwriting, and custom properties during asset creation.\u003c/p\u003e\n"],["\u003cp\u003eReturns asset details including a generated ID or utilizes a callback function for asynchronous operations.\u003c/p\u003e\n"],["\u003cp\u003eSupports creating empty image collections and folders by providing a JSON value with the specific "type" key.\u003c/p\u003e\n"]]],["The function `ee.data.createAsset` creates an asset from a JSON value. It accepts a `value` object describing the asset and an optional `path` for the asset ID. The `force` argument allows overwriting, and `properties` sets asset metadata. A `callback` enables asynchronous operation. Without a callback, it returns an object describing the asset, including the ID. An empty image collection or folder can be created by using the values from ee.data.AssetType.\n"],null,["# ee.data.createAsset\n\n\u003cbr /\u003e\n\nCreates an asset from a JSON value. To create an empty image collection or folder, pass in a \"value\" object with a \"type\" key whose value is one of ee.data.AssetType.\\* (i.e. \"ImageCollection\" or \"Folder\").\n\n\u003cbr /\u003e\n\nReturns a description of the saved asset, including a generated ID, or null if a callback is specified.\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------|---------|\n| `ee.data.createAsset(value, `*path* `, `*force* `, `*properties* `, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|--------------|--------------------|------------------------------------------------------------------------|\n| `value` | Object | An object describing the asset to create. |\n| `path` | String, optional | An optional desired ID, including full path. |\n| `force` | Boolean, optional | Force overwrite. |\n| `properties` | Object, optional | The keys and values of the properties to set |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]