Anuncio: Todos los proyectos no comerciales registrados para usar Earth Engine antes del
15 de abril de 2025 deben
verificar su elegibilidad no comercial para mantener el acceso a Earth Engine.
Method: projects.table.computeFeatures
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Calcula un conjunto de atributos aplicando un cálculo arbitrario a los atributos de una o más tablas. Los resultados se muestran como una lista de objetos de características GeoJSON.
Solicitud HTTP
POST https://earthengine.googleapis.com/v1/{project=projects/*}/table:computeFeatures
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
project |
string
El ID o el número de proyecto de Google Cloud Platform que se debe considerar como el consumidor de servicios para esta solicitud. El formato es projects/{project-id} .
La autorización requiere el siguiente permiso IAM en el recurso especificado project :
earthengine.computations.create
|
Cuerpo de la solicitud
El cuerpo de la solicitud contiene datos con la siguiente estructura:
Representación JSON |
{
"expression": {
object (Expression )
},
"pageSize": integer,
"pageToken": string,
"workloadTag": string
} |
Campos |
expression |
object (Expression )
La expresión que se debe calcular.
|
pageSize |
integer
Es la cantidad máxima de resultados por página. Es posible que el servidor devuelva menos atributos de los solicitados. Si no se especifica, el tamaño de página predeterminado es de 1,000 resultados por página.
|
pageToken |
string
Un token que identifica una página de resultados que debe mostrar el servidor. Por lo general, este es el valor de ComputeFeaturesResponse.next_page_token que se muestra de la llamada anterior al método table.computeFeatures .
|
workloadTag |
string
Es la etiqueta que proporcionó el usuario para hacer un seguimiento de este cálculo.
|
Cuerpo de la respuesta
Mensaje de respuesta para EarthEngineService.ComputeFeatures.
Si se ejecuta correctamente, el cuerpo de la respuesta contendrá datos con la siguiente estructura:
Representación JSON |
{
"type": string,
"features": [
{
object (Feature )
}
],
"nextPageToken": string
} |
Campos |
type |
string
Siempre contiene la cadena constante "FeatureCollection", que lo marca como un objeto FeatureCollection de GeoJSON.
|
features[] |
object (Feature )
La lista de componentes que coinciden con la consulta, como una lista de objetos de componentes GeoJSON (consulta la RFC 7946) que contiene la cadena "Feature" en un campo llamado "type", la geometría en un campo llamado "geometry" y las propiedades clave-valor en un campo llamado "properties".
|
nextPageToken |
string
Un token para recuperar los resultados de la página siguiente. Pasa este valor en el campo ComputeFeaturesRequest.page_token en la llamada posterior al método table.computeFeatures para recuperar la siguiente página de resultados.
|
Permisos de autorización
Se necesita uno de los siguientes permisos de 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
Para obtener más información, consulta OAuth 2.0 Overview.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-07-25 (UTC)
[null,null,["Última actualización: 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)."]]