Imports an image.
HTTP request
POST https://earthengine.googleapis.com/v1/{project=projects/*}/image: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 |
---|
{
"imageManifest": {
object ( |
Fields | |
---|---|
image |
The image 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.
ImageManifest
Describes how the EarthEngine service should compose an image from a set of files.
JSON representation |
---|
{ "name": string, "properties": { object }, "uriPrefix": string, "tilesets": [ { 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 |
tilesets[] |
The tilesets. Each tileset must have a unique ID. |
bands[] |
The bands. The band order of the asset is the same as the order of |
mask |
The mask bands. |
footprint |
The footprint in pixel coordinates (not in lat/lng coordinates). If empty, the footprint is by default the entire image. See |
missing |
The values which represent no data in all bands of the image. Applies to all bands which do not specify their own |
pyramiding |
The pyramiding policy. If unspecified, the policy MEAN is applied by default. Applies to all bands which do not specify their own |
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: |
skip |
Whether to skip reading metadata from files using GDAL. When this field is true, tilesets should contain complete GDAL metadata: data type, crs, transform, file dimensions, and no data value. |
memo |
Freeform field to store user notes. Not used in ingestion. |
TilesetBand
Represents a single band sourced from a tileset.
JSON representation |
---|
{ "id": string, "tilesetId": string, "tilesetBandIndex": integer, "missingData": { object ( |
Fields | |
---|---|
id |
The ID of the band. |
tileset |
The ID of the tileset corresponding to the band. |
tileset |
The zero-based band index from the tileset corresponding to the band. E.g. if 1, then the pixels of the band are are the pixels of the band at index 1 of the tileset (in |
missing |
The values which represent no data in the band. If |
pyramiding |
The pyramiding policy. |
TilesetMaskBand
Represents a single mask band sourced from a tileset.
JSON representation |
---|
{ "tilesetId": string, "bandIds": [ string ] } |
Fields | |
---|---|
tileset |
The ID of the Tileset corresponding to the mask band. The last band of the Tileset is always used as the mask band. |
band |
The IDs of bands that the mask band applies to. If empty, the mask band is applied to all bands in the asset. Each band may only have one corresponding mask band. |
PixelFootprint
A footprint of all valid pixels in an image.
JSON representation |
---|
{
"points": [
{
object ( |
Fields | |
---|---|
points[] |
A ring which forms the exterior of a simple polygon that must contain the centers of all valid pixels of the image. This must be a linear ring: the last point must be equal to the first. Coordinates are in the projection of the band specified by Note: Use non-integer coordinates such as the center of each pixel because footprint is taken to include a pixel iff the pixel (a 1x1 rectangle) intersects the footprint. To avoid accidentally selecting neighboring pixels, don't use integer-valued coordinates, because those are the boundaries between pixels. Drawing the footprint along the pixel centers prevents including unintended pixels, which can cause errors when intended pixels are abutting a map boundary such as the antimeridian or a pole. For example, for a 2x2 image with all 4 valid pixels the following is one possible ring: [{"x": 0.5, "y": 0.5}, {"x": 0.5, "y": 1.5}, {"x": 1.5, "y": 1.5}, {"x": 1.5, "y": 0.5}, {"x": 0.5, "y": 0.5}] |
band |
The ID of the band whose CRS defines the coordinates of the footprint. If empty, the first band is used. |
GridPoint
A two-dimensional point or vector.
JSON representation |
---|
{ "x": number, "y": number } |
Fields | |
---|---|
x |
The x coordinate value. |
y |
The y coordinate value. |