公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
Method: projects.classifier.export
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
啟動批次處理作業,計算分類器並儲存為 Earth Engine 資產。
HTTP 要求
POST https://earthengine.googleapis.com/v1beta/{project=projects/*}/classifier:export
這個網址使用 gRPC 轉碼語法。
路徑參數
參數 |
project |
string
必要欄位。應視為此要求服務用戶的 Google Cloud Platform 專案專案 ID 或專案編號。格式為 projects/{project-id} 。
授權需要指定資源 project 的下列 IAM 權限:
earthengine.exports.create
|
要求主體
要求主體的資料會採用以下結構:
JSON 表示法 |
{
"expression": {
object (Expression )
},
"description": string,
"requestId": string,
"assetExportOptions": {
object (ClassifierAssetExportOptions )
},
"workloadTag": string,
"priority": integer
} |
欄位 |
expression |
object (Expression )
必要欄位。運算式會評估為 Earth Engine 分類器,用於計算及匯出。
|
description |
string
選用設定。任務的選用人性化名稱。
|
requestId |
string
選用設定。用於偵測重複要求的不重複字串。如果同一位使用者使用相同的非空白 requestId 提出多個要求,只有其中一個要求才能成功啟動長時間執行作業。requestId 可包含 a..z、A..Z、0-9 或「-」字元。requestId 的長度上限為 60 個半形字元。
|
assetExportOptions |
object (ClassifierAssetExportOptions )
必要欄位。將匯出內容設為 Earth Engine 資產。
|
workloadTag |
string
選用設定。使用者提供的標籤,用於追蹤這項運算。
|
priority |
integer
選用設定。專案中匯出工作的重要性。優先順序較高的任務會排定較早的時間。須為介於 0 至 9999 之間的整數。如果未設定,預設值為 100。
|
回應主體
如果成功,回應主體會包含 Operation
的執行例項。
授權範圍
需要下列其中一種 OAuth 範圍:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/cloud-platform
詳情請參閱 OAuth 2.0 Overview。
ClassifierAssetExportOptions
將資料表儲存為 Earth Engine 資產的選項。
JSON 表示法 |
{
// Union field destination can be only one of the following:
"earthEngineDestination": {
object (EarthEngineDestination )
}
// End of list of possible types for union field destination .
} |
欄位 |
聯集欄位 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 a batch process to compute and export an Earth Engine classifier as an asset.\u003c/p\u003e\n"],["\u003cp\u003eRequires an expression evaluating to the classifier and asset export options in the request body.\u003c/p\u003e\n"],["\u003cp\u003eUsers can optionally specify a description, request ID, workload tag, and priority for the export task.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses return an Operation object representing the long-running export process.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with either \u003ccode\u003ehttps://www.googleapis.com/auth/earthengine\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e scopes.\u003c/p\u003e\n"]]],[],null,["# Method: projects.classifier.export\n\nInitiates a batch process that computes a classifier and saves it as an Earth Engine asset.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1beta/{project=projects/*}/classifier:export`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | `string` Required. The project id or project number of the Google Cloud Platform project that should be treated as the service consumer for this request. Format is `projects/{project-id}`. Authorization requires the following [IAM](https://cloud.google.com/iam/docs/) permission on the specified resource `project`: - `earthengine.exports.create` |\n\n### Request body\n\nThe request body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"expression\": { object (/earth-engine/reference/rest/v1beta/Expression) }, \"description\": string, \"requestId\": string, \"assetExportOptions\": { object (/earth-engine/reference/rest/v1beta/projects.classifier/export#ClassifierAssetExportOptions) }, \"workloadTag\": string, \"priority\": integer } ``` |\n\n| Fields ||\n|----------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `expression` | `object (`[Expression](/earth-engine/reference/rest/v1beta/Expression)`)` Required. An expression that evaluates to an Earth Engine Classifier to compute and export. |\n| `description` | `string` Optional. An optional human-readable name of the task. |\n| `requestId` | `string` Optional. A unique string used to detect duplicated requests. If more than one request is made by the same user with the same non-empty `requestId`, only one of those requests may successfully start a long-running operation. `requestId` may contain the characters a..z, A..Z, 0-9, or '-'. `requestId` may be at most 60 characters long. |\n| `assetExportOptions` | `object (`[ClassifierAssetExportOptions](/earth-engine/reference/rest/v1beta/projects.classifier/export#ClassifierAssetExportOptions)`)` Required. Configures the export as an Earth Engine asset. |\n| `workloadTag` | `string` Optional. User supplied label to track this computation. |\n| `priority` | `integer` Optional. The priority of the export task within the project. Higher priority tasks are scheduled sooner. Must be an integer between 0 and 9999. Defaults to 100 if not set. |\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/earth-engine/reference/rest/Shared.Types/ListOperationsResponse#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/earthengine`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2).\n\nClassifierAssetExportOptions\n----------------------------\n\nOptions for saving tables as Earth Engine assets.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `destination` can be only one of the following: \"earthEngineDestination\": { object (/earth-engine/reference/rest/v1beta/EarthEngineDestination) } // End of list of possible types for union field `destination`. } ``` |\n\n| Fields ||\n|--------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `destination`. Where to write the results. `destination` can be only one of the following: ||\n| `earthEngineDestination` | `object (`[EarthEngineDestination](/earth-engine/reference/rest/v1beta/EarthEngineDestination)`)` If specified, configures export to Earth Engine. |"]]