Method: projects.video.export

啟動批次程序,計算影片並將結果寫入其中一個目的地。

HTTP 要求

POST https://earthengine.googleapis.com/v1beta/{project=projects/*}/video:export

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
project

string

應視為此要求服務用戶的 Google Cloud Platform 專案專案 ID 或專案編號。格式為 projects/{project-id}

授權需要指定資源 project 的下列 IAM 權限:

  • earthengine.exports.create

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "expression": {
    object (Expression)
  },
  "description": string,
  "videoOptions": {
    object (VideoOptions)
  },
  "fileExportOptions": {
    object (VideoFileExportOptions)
  },
  "requestId": string,
  "workloadTag": string,
  "priority": integer
}
欄位
expression

object (Expression)

這個運算式會評估要計算及匯出的影片,並以圖片集合表示。

description

string

任務的使用者可讀名稱。

videoOptions

object (VideoOptions)

說明要產生影片的基本選項。

fileExportOptions

object (VideoFileExportOptions)

匯出影片的選項,包括匯出位置和格式。

requestId

string

用於偵測重複要求的不重複字串。如果同一位使用者使用相同的非空白 requestId 提出多個要求,只有其中一個要求才能成功啟動長時間執行作業。requestId 可包含 a..z、A..Z、0-9 或「-」字元。requestId 的長度上限為 60 個半形字元。

workloadTag

string

使用者提供的標籤,用於追蹤這項運算。

priority

integer

選用設定。專案中匯出工作的重要性。優先順序較高的任務會排定較早的時間。須為介於 0 至 9999 之間的整數。如果未設定,預設值為 100。

回應主體

如果成功,回應主體會包含 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

VideoFileExportOptions

匯出影片至 Earth Engine 以外的選項。

JSON 表示法
{
  "fileFormat": enum (VideoFileFormat),

  // Union field destination can be only one of the following:
  "driveDestination": {
    object (DriveDestination)
  },
  "cloudStorageDestination": {
    object (CloudStorageDestination)
  }
  // End of list of possible types for union field destination.
}
欄位
fileFormat

enum (VideoFileFormat)

匯出影片的檔案格式。目前僅支援 MP4。

聯集欄位 destination。結果寫入位置。destination 只能是下列其中一項:
driveDestination

object (DriveDestination)

如果有指定,系統會設定匯出至 Google 雲端硬碟。

cloudStorageDestination

object (CloudStorageDestination)

如果指定此值,系統會將匯出作業設為匯出至 Google Cloud Storage。