Imports a table.
HTTP request
POST https://earthengine.googleapis.com/v1alpha/{project=projects/*}/table:import
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
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 Authorization requires the following IAM permission on the specified resource
|
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"tableManifest": {
object ( |
Fields | |
---|---|
table |
The table manifest. |
description |
A human-readable name of the task. |
overwrite |
Whether to allow overwriting an existing asset. |
request |
A unique string used to detect duplicated requests. If more than one request is made by the same user with the same non-empty |
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
For more information, see the Authentication Overview.
TableManifest
Describes how the EarthEngine service should compose a table from a set of files.
JSON representation |
---|
{ "name": string, "properties": { object }, "uriPrefix": string, "sources": [ { object ( |
Fields | |
---|---|
name |
The name of the asset to be created. |
properties |
Additional properties of the asset. The property names "system:time_start" and "system:time_end" are deprecated. Use the fields |
uri |
The optional prefix prepended to all |
sources[] |
The sources which comprise this table. |
start |
The timestamp associated with the asset, if any, e.g. the time at which a satellite image was taken. For assets that correspond to an interval of time, such as average values over a month or year, this timestamp corresponds to the start of that interval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
end |
For assets that correspond to an interval of time, such as average values over a month or year, this timestamp corresponds to the end of that interval (exclusive). A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
csvColumnDataTypeOverrides |
Use columnDataTypeOverrides instead. An object containing a list of |
column |
A map from column name to the type to use for that column. Columns not specified here will have their type inferred, such that number columns become numbers, WKT columns become geometry, etc. An object containing a list of |
memo |
Freeform field to store user notes. Not used in ingestion. |
TableSource
A table file.
JSON representation |
---|
{ "uris": [ string ], "charset": string, "maxErrorMeters": number, "maxVertices": integer, "crs": string, "geodesic": boolean, "primaryGeometryColumn": string, "xColumn": string, "yColumn": string, "dateFormat": string, "csvDelimiter": string, "csvQualifier": string } |
Fields | |
---|---|
uris[] |
The URIs of the data to import. Currently only Google Cloud Storage URIs are supported. Each URI must be specified in the following format: "gs://bucket-id/object-id". The primary object should be the first element of the list, sidecar files are inferred from the filepath of the primary object. Only one URI is currently supported. If more than one URI is specified an |
charset |
The name of the default charset to use for decoding strings. If empty, the charset "utf-8" is assumed by default. |
max |
The max allowed error in meters when transforming geometry between coordinate systems. If empty, the max error is 1 meter by default. |
max |
The max number of vertices. If not zero, geometry will be subdivided into spatially disjoint pieces which are each under this limit. |
crs |
The default CRS code or WKT string specifying the coordinate reference system of any geometry that does not have one specified. If left blank, the default will be EPSG:4326: https://epsg.io/4326. For CSV/TFRecord sources only. |
geodesic |
The default strategy for interpreting edges in geometry that do not have one otherwise specified. If false, edges are straight in the projection. If true, edges are curved to follow the shortest path on the surface of the Earth. When blank, defaults to false if 'crs' is a projected coordinate system. For CSV/TFRecord sources only. |
primary |
The geometry column to use as a row's primary geometry when there is more than one geometry column. If left blank and more than one geometry column exists, the first geometry column encountered is used. For CSV/TFRecord sources only. |
x |
The name of the numeric x coordinate column for deducing point geometry. If the yColumn is also specified, and both columns contain number values, then a point geometry column will be constructed with x,y values in the coordinate system given in 'crs'. If left blank and 'crs' does not specify a projected coordinate system, defaults to "longitude". If left blank and 'crs' does specify a projected coordinate system, defaults to "" and no point geometry is generated. A generated point geometry column will be named {xColumn}_{yColumn}_N where N is appended such that {xColumn}_{yColumn}_N is unique if a column named {xColumn}_{yColumn} already exists. For CSV/TFRecord sources only. |
y |
The name of the numeric y coordinate column for deducing point geometry. If the xColumn is also specified, and both columns contain number values, then a point geometry column will be constructed with x,y values in the coordinate system given in 'crs'. If left blank and 'crs' does not specify a projected coordinate system, defaults to "latitude". If left blank and 'crs' does specify a projected coordinate system, defaults to "" and no point geometry is generated. A generated point geometry column will be named {xColumn}_{yColumn}_N where N is appended such that {xColumn}_{yColumn}_N is unique if a column named {xColumn}_{yColumn} already exists. For CSV/TFRecord sources only. |
date |
A format with which to parse fields encoding dates. The format pattern must be as described at http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html. If left blank, dates will be imported as strings. For CSV/TFRecord sources only. |
csv |
When ingesting CSV files, a single character used as a delimiter between column values in a row. If left blank, defaults to ','. For CSV sources only. |
csv |
When ingesting CSV files, a character that surrounds column values (a.k.a. "quote character"). If left blank, defaults to '"'. For CSV sources only. If a column value is not surrounded by qualifiers, leading and tailing whitespace is trimmed. For example: ..., test,... <== this value is not qualified becomes the string value: "test" <== whitespace is stripped where: ...," test",... <== this value IS qualified with quotes becomes the string value: " test" <== whitespace remains! |