お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
Method: projects.table.computeFeatures
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
1 つ以上のテーブル内の特徴に任意の計算を適用して、特徴セットを計算します。結果は GeoJSON フィーチャー オブジェクトのリストとして返されます。
HTTP リクエスト
POST https://earthengine.googleapis.com/v1/{project=projects/*}/table:computeFeatures
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
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
ページあたりの結果の最大数。サーバーが返す特徴が、リクエストされた数よりも少ないことがあります。指定しない場合は、ページサイズのデフォルトは 1 ページあたり 1, 000 件です。
|
pageToken |
string
サーバーが返す必要がある結果のページを特定するトークンです。 通常、これは table.computeFeatures メソッドの前の呼び出しから返された ComputeFeaturesResponse.next_page_token の値です。
|
workloadTag |
string
この計算をトラッキングするためにユーザーが指定したタグ。
|
レスポンスの本文
EarthEngineService.ComputeFeatures に対するレスポンス メッセージ。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
JSON 表現 |
{
"type": string,
"features": [
{
object (Feature )
}
],
"nextPageToken": string
} |
フィールド |
type |
string
常に定数文字列「FeatureCollection」が含まれ、GeoJSON FeatureCollection オブジェクトであることを示します。
|
features[] |
object (Feature )
クエリに一致する対象物のリスト。GeoJSON 対象物オブジェクトのリスト(RFC 7946 を参照)で、「type」という名前のフィールドに「Feature」という文字列、「geometry」という名前のフィールドにジオメトリ、「properties」という名前のフィールドにキー/値のプロパティが含まれています。
|
nextPageToken |
string
結果の次のページを取得するためのトークン。 この値を次の table.computeFeatures メソッド呼び出しの ComputeFeaturesRequest.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 をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eComputes features by applying a given computation to features within tables, returning results as GeoJSON feature objects.\u003c/p\u003e\n"],["\u003cp\u003eRequires an \u003ccode\u003eexpression\u003c/code\u003e to define the computation, and allows pagination using \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e parameters.\u003c/p\u003e\n"],["\u003cp\u003eResponses are formatted as GeoJSON FeatureCollections, including a list of features and a token for retrieving further pages.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization necessitates specific OAuth scopes, including \u003ccode\u003eearthengine\u003c/code\u003e, \u003ccode\u003ecloud-platform\u003c/code\u003e, or their read-only counterparts.\u003c/p\u003e\n"],["\u003cp\u003eUsers can tag computations with a custom \u003ccode\u003eworkloadTag\u003c/code\u003e for tracking purposes.\u003c/p\u003e\n"]]],[],null,["# Method: projects.table.computeFeatures\n\nComputes a set of features by applying an arbitrary computation to features in one or more tables. Results are returned as a list of GeoJSON feature objects.\n\n### HTTP request\n\n`POST https://earthengine.googleapis.com/v1/{project=projects/*}/table:computeFeatures`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | `string` 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.computations.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/v1/Expression) }, \"pageSize\": integer, \"pageToken\": string, \"workloadTag\": string } ``` |\n\n| Fields ||\n|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `expression` | `object (`[Expression](/earth-engine/reference/rest/v1/Expression)`)` The expression to compute. |\n| `pageSize` | `integer` The maximum number of results per page. The server may return fewer features than requested. If unspecified, the page size default is 1000 results per page. |\n| `pageToken` | `string` A token identifying a page of results the server should return. Typically, this is the value of [ComputeFeaturesResponse.next_page_token](/earth-engine/reference/rest/v1/projects.table/computeFeatures#body.ComputeFeaturesResponse.FIELDS.next_page_token) returned from the previous call to the `table.computeFeatures` method. |\n| `workloadTag` | `string` User supplied tag to track this computation. |\n\n### Response body\n\nResponse message for EarthEngineService.ComputeFeatures.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"type\": string, \"features\": [ { object (/earth-engine/reference/rest/v1/Feature) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `type` | `string` Always contains the constant string \"FeatureCollection\", marking this as a GeoJSON FeatureCollection object. |\n| `features[]` | `object (`[Feature](/earth-engine/reference/rest/v1/Feature)`)` The list of features matching the query, as a list of GeoJSON feature objects (see RFC 7946) containing the string \"Feature\" in a field named \"type\", the geometry in a field named \"geometry\", and key/value properties in a field named \"properties\". |\n| `nextPageToken` | `string` A token to retrieve the next page of results. Pass this value in the [ComputeFeaturesRequest.page_token](/earth-engine/reference/rest/v1/projects.table/computeFeatures#body.request_body.FIELDS.page_token) field in the subsequent call to the `table.computeFeatures` method to retrieve the next page of results. |\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/earthengine.readonly`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/cloud-platform.read-only`\n\nFor more information, see the [OAuth 2.0 Overview](/identity/protocols/OAuth2)."]]