公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取。如未在 2025 年 9 月 26 日前完成驗證,存取權可能會暫停。
ee.data.startProcessing
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
建立處理工作,匯出或預先算繪圖片。
如果指定回呼,傳回值為空值。
傳回含有下列欄位的物件:
- taskId:提交的工作 ID (不含連字號)。
- name:作業全名,格式為 projects/X/operations/Y
- started:會是「OK」
- 注意:如果已有 ID 相同但未提交的任務,這個值可能為「ALREADY_EXISTS」。
用量 | 傳回 |
---|
ee.data.startProcessing(taskId, params, callback) | ProcessingResponse |
引數 | 類型 | 詳細資料 |
---|
taskId | 字串 | 未提交的工作 ID (從 newTaskId 取得)。用於識別重複工作,可能為空值。伺服器會建立並傳回提交的 ID。 |
params | 物件 | 說明處理工作的物件;這裡只記錄所有處理類型通用的欄位。type (字串) 可以是「EXPORT_IMAGE」、「EXPORT_FEATURES」、「EXPORT_VIDEO」或「EXPORT_TILES」。json (字串) 圖片的 JSON 說明。 |
callback | 函式 (選用) | 選用回呼。如未提供,系統會同步發出呼叫。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],["The `ee.data.startProcessing` function initiates a processing task to export or pre-render an image. It accepts a `taskId`, `params` object (specifying task type and JSON description), and an optional `callback`. The function returns a `ProcessingResponse` object with the submitted task ID, operation name, and start status, or `null` if a callback is provided. `taskId` is a user-defined ID, while the server generates the submitted ID, and `params` specify the task type. A note of `ALREADY_EXISTS` may be present.\n"]]