お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.data.updateAsset
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
アセットを更新します。
認証されたユーザーは、アセットの書き込み権限または所有権を持っている必要があります。
用途 | 戻り値 |
---|
ee.data.updateAsset(assetId, asset, updateFields, callback) | オブジェクト |
引数 | タイプ | 詳細 |
---|
assetId | 文字列 | 更新するアセットの ID。 |
asset | api.EarthEngineAsset | 更新されたアセットのバージョン。更新されるフィールドの新しい値のみが含まれます。更新できるのは、start_time、end_time、properties の各フィールドのみです。「updateMask」で値が指定されていても、「asset」で設定されていない場合、その値はアセットから削除されます。 |
updateFields | List<String> | 更新するフィールド名のリスト。これには、対応するタイムスタンプを更新する「start_time」または「end_time」、特定のプロパティを更新する「properties.PROPERTY_NAME」、すべてのプロパティを更新する「properties」が含まれる場合があります。リストが空の場合、すべてのプロパティと両方のタイムスタンプが更新されます。 |
callback | 関数(省略可) | オプションのコールバック。指定しない場合、呼び出しは同期的に行われます。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eUpdates specified fields or all properties and timestamps of an Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eRequires writer or owner authentication for the asset being updated.\u003c/p\u003e\n"],["\u003cp\u003eAllows updating start/end times and properties, with the option to delete values by specifying them in \u003ccode\u003eupdateFields\u003c/code\u003e but omitting them in \u003ccode\u003easset\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.updateAsset\u003c/code\u003e function with asset ID, updated asset details, and optional fields to update and callback.\u003c/p\u003e\n"]]],["This function updates an existing asset, requiring the user to be a writer or owner. It accepts the `assetId`, an `asset` object containing new field values, and a list of `updateFields`. Updatable fields include \"start_time\", \"end_time\", and \"properties\". Specifying a field in `updateFields` but not in `asset` deletes it. An empty `updateFields` list updates all properties and timestamps. The function returns an object, with an optional callback for asynchronous operation.\n"],null,["# ee.data.updateAsset\n\n\u003cbr /\u003e\n\nUpdates an asset.\n\n\u003cbr /\u003e\n\nThe authenticated user must be a writer or owner of the asset.\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| `ee.data.updateAsset(assetId, asset, updateFields, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|----------------|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assetId` | String | The ID of the asset to update. |\n| `asset` | api.EarthEngineAsset | The updated version of the asset, containing only the new values of the fields to be updated. Only the \"start_time\", \"end_time\", and \"properties\" fields can be updated. If a value is named in \"updateMask\", but is unset in \"asset\", then that value will be deleted from the asset. |\n| `updateFields` | List\\\u003cString\\\u003e | A list of the field names to update. This may contain: \"start_time\" or \"end_time\" to update the corresponding timestamp, \"properties.PROPERTY_NAME\" to update a given property, or \"properties\" to update all properties. If the list is empty, all properties and both timestamps will be updated. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]