Method: projects.imageCollection.computeImages

將任意運算套用至一或多個資料表中的特徵,藉此計算一組特徵。結果會以圖片清單的形式傳回。

HTTP 要求

POST https://earthengine.googleapis.com/v1alpha/{project=projects/*}/imageCollection:computeImages

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

路徑參數

參數
project

string

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

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

  • earthengine.computations.create

要求主體

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

JSON 表示法
{
  "expression": {
    object (Expression)
  },
  "pageSize": integer,
  "pageToken": string,
  "workloadTag": string
}
欄位
expression

object (Expression)

要計算的運算式。

pageSize

integer

每頁的結果數量上限。伺服器傳回的圖片可能少於要求的數量。如果未指定,則每頁的預設頁面大小為 1000 個結果。

pageToken

string

這個符記可識別伺服器應傳回的結果頁面。通常,這是先前對 imageCollection.computeImages 方法的呼叫傳回的 ComputeImagesResponse.next_page_token 值。

workloadTag

string

使用者提供的用於追蹤這項運算的代碼。

回應主體

EarthEngineService.ComputeImages 的回應訊息。

如果成功,回應主體會含有以下結構的資料:

JSON 表示法
{
  "images": [
    {
      object (EarthEngineAsset)
    }
  ],
  "nextPageToken": string
}
欄位
images[]

object (EarthEngineAsset)

符合查詢的圖片清單。

nextPageToken

string

用來擷取下一頁結果的符記。在後續對 imageCollection.computeImages 方法的呼叫中,將這個值傳遞至 ComputeImagesRequest.page_token 欄位,即可擷取下一頁的結果。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/earthengine
  • https://www.googleapis.com/auth/earthengine.readonly
  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/cloud-platform.read-only

詳情請參閱 OAuth 2.0 Overview