Method: projects.table.export

Initiates a batch process that computes a table and writes the result to one of several destinations.

HTTP request

POST https://earthengine.googleapis.com/v1alpha/{project=projects/*}/table:export

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
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 Google IAM permission on the specified resource project:

  • earthengine.exports.create

Request body

The request body contains data with the following structure:

JSON representation
{
  "expression": {
    object (Expression)
  },
  "description": string,
  "selectors": [
    string
  ],
  "maxErrorMeters": number,
  "requestId": string,

  // Union field export_options can be only one of the following:
  "fileExportOptions": {
    object (TableFileExportOptions)
  },
  "assetExportOptions": {
    object (TableAssetExportOptions)
  }
  // End of list of possible types for union field export_options.
}
Fields
expression

object (Expression)

An expression that evaluates to the table to compute and export.

description

string

An optional human-readable name of the task.

selectors[]

string

An optional explicit list of columns to include in the result.

maxErrorMeters

number

The max allowed error in meters when transforming geometry between coordinate systems. If empty, the max error is 1 meter by default.

requestId

string

A unique string used to detect duplicated requests. If more than one request is made by the same user with the same non-empty requestId, only one of those requests may successfully start a long-running operation. requestId may contain the characters a..z, A..Z, 0-9, or '-'. requestId may be at most 60 characters long.

Union field export_options. Options describing where and how to store the results. export_options can be only one of the following:
fileExportOptions

object (TableFileExportOptions)

If specified, configures export as a file.

assetExportOptions

object (TableAssetExportOptions)

If specified, configures export as an Earth Engine asset.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/earthengine
  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/devstorage.full_control

TableFileExportOptions

Options for exporting tables as files outside Earth Engine.

JSON representation
{
  "fileFormat": enum (TableFileFormat),

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

enum (TableFileFormat)

The file format in which to export the table(s).

Union field destination. Where to write the results. destination can be only one of the following:
driveDestination

object (DriveDestination)

If specified, configures export to Google Drive.

gcsDestination

object (GcsDestination)

If specified, configures export to Google Cloud Storage.

TableFileFormat

Selects a tabular file format in which to encode a table of features.

Enums
TABLE_FILE_FORMAT_UNSPECIFIED Unspecified.
CSV Comma-separated value format.
GEO_JSON GeoJSON FeatureCollection format. See http://geojson.org/.
KML Keyhole Markup Language format.
KMZ Zip-compressed Keyhole Markup Language format.
SHP Shapefile format.
TF_RECORD_TABLE TFRecord format.

TableAssetExportOptions

Options for saving tables as Earth Engine assets.

JSON representation
{
  "earthEngineDestination": {
    object (EarthEngineDestination)
  }
}
Fields
earthEngineDestination

object (EarthEngineDestination)

If specified, configures export to Earth Engine.