公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
Method: projects.image.export
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
啟動批次程序,計算圖片並將結果寫入其中一個目的地。
HTTP 要求
POST https://earthengine.googleapis.com/v1/{project=projects/*}/image:export
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
project |
string
應視為此要求服務用戶的 Google Cloud Platform 專案專案 ID 或專案編號。格式為 projects/{project-id} 。
授權需要指定資源 project 的下列 IAM 權限:
earthengine.exports.create
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"expression": {
object (Expression )
},
"description": string,
"maxPixels": string,
"grid": {
object (PixelGrid )
},
"requestId": string,
"workloadTag": string,
"priority": integer,
// Union field export_options can be only one of the following:
"fileExportOptions": {
object (ImageFileExportOptions )
},
"assetExportOptions": {
object (ImageAssetExportOptions )
}
// End of list of possible types for union field export_options .
} |
欄位 |
expression |
object (Expression )
評估為要運算及匯出的圖片的運算式。
|
description |
string
任務的使用者可解讀的名稱。
|
maxPixels |
string (Int64Value format)
要運算及匯出的像素數量上限。這項安全防護措施可避免你不小心啟動比預期更大的匯出作業。預設值為 1e8 像素,但您可以明確設定值,提高或降低此限制。
|
grid |
object (PixelGrid )
描述如何重新投影及裁剪由 expression 計算的圖片的參數。如果沒有,系統會以原生投影方式傳回完整的計算圖像。
|
requestId |
string
用於偵測重複要求的不重複字串。如果同一位使用者使用相同的非空白 requestId 提出多個要求,只有其中一個要求才能成功啟動長時間執行作業。requestId 可包含 a..z、A..Z、0-9 或「-」字元。requestId 的長度上限為 60 個半形字元。
|
workloadTag |
string
使用者提供的標籤,用於追蹤這項運算。
|
priority |
integer
選用設定。專案中匯出工作的重要性。優先順序較高的任務會排定較早的時間。須為介於 0 至 9999 之間的整數。如果未設定,預設值為 100。
|
聯集欄位 export_options 。說明結果儲存位置和儲存方式的選項。export_options 只能是下列其中一項: |
fileExportOptions |
object (ImageFileExportOptions )
如果指定此值,系統會將匯出作業設為檔案。
|
assetExportOptions |
object (ImageAssetExportOptions )
如果指定此值,系統會將匯出內容設為 Earth Engine 資產。
|
回應主體
如果成功,回應主體會包含 Operation
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/devstorage.full_control
詳情請參閱 OAuth 2.0 Overview。
ImageAssetExportOptions
將圖片儲存為 Earth Engine 資產的選項。
JSON 表示法 |
{
"pyramidingPolicy": enum (PyramidingPolicy ),
"pyramidingPolicyOverrides": {
string: enum (PyramidingPolicy ),
...
},
// Union field destination can be only one of the following:
"earthEngineDestination": {
object (EarthEngineDestination )
}
// End of list of possible types for union field destination .
} |
欄位 |
pyramidingPolicy |
enum (PyramidingPolicy )
預設套用至所有頻帶的金字塔政策。
|
pyramidingPolicyOverrides |
map (key: string, value: enum (PyramidingPolicy ))
特定頻段金字塔政策覆寫值。 這個物件中包含 "key": value 組合的清單,範例:{ "name": "wrench", "mass": "1.3kg", "count": "3" } 。
|
聯集欄位 destination 。結果寫入位置。destination 只能是下列其中一項: |
earthEngineDestination |
object (EarthEngineDestination )
如果指定此值,系統就會設定匯出至 Earth Engine。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eInitiates an image processing batch job, computing and saving the result to various destinations like Earth Engine assets or as a file.\u003c/p\u003e\n"],["\u003cp\u003eRequires specifying an expression to compute the image, a description for the task, and options for reprojection, clipping, and export destination.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over export parameters, including maximum pixels, request identifiers for duplication detection, workload tagging, and task priority.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003ePOST\u003c/code\u003e method with the \u003ccode\u003ehttps://earthengine.googleapis.com/v1/{project=projects/*}/image:export\u003c/code\u003e endpoint for initiating the process.\u003c/p\u003e\n"],["\u003cp\u003eNeeds authorization with specific OAuth scopes like \u003ccode\u003ehttps://www.googleapis.com/auth/earthengine\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],["This documentation describes initiating an image export batch process via a POST request to `https://earthengine.googleapis.com/v1/{project=projects/*}/image:export`. The request body defines the `expression` to compute, task `description`, `maxPixels`, and `grid` parameters. It also includes a `requestId` and `workloadTag` for tracking and deduplication. The `export_options` field determines if the result is a `file` or an Earth Engine `asset`, with the `asset` having options for `pyramidingPolicy`. Authorization requires specific IAM permissions and OAuth scopes.\n"],null,[]]