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。