ImageFileExportOptions

用于将图片以文件形式导出到 Earth Engine 之外的选项。

JSON 表示法
{
  "fileFormat": enum (ImageFileFormat),

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

  // Union field format_options can be only one of the following:
  "geoTiffOptions": {
    object (GeoTiffImageExportOptions)
  },
  "tfRecordOptions": {
    object (TfRecordImageExportOptions)
  }
  // End of list of possible types for union field format_options.
}
字段
fileFormat

enum (ImageFileFormat)

导出图片的文件格式。

联合字段 destination。写入结果的位置。destination 只能是下列其中一项:
driveDestination

object (DriveDestination)

如果指定,则配置导出到 Google 云端硬盘。

cloudStorageDestination

object (CloudStorageDestination)

如果指定,则配置将数据导出到 Google Cloud Storage。

联合字段 format_options。文件格式专用选项。format_options 只能是下列其中一项:
geoTiffOptions

object (GeoTiffImageExportOptions)

适用于 GEO_TIFF 导出的文件格式专用选项。

tfRecordOptions

object (TfRecordImageExportOptions)

适用于 TF_RECORD_IMAGE 导出的文件格式专用选项。

GeoTiffImageExportOptions

用于将图片编码为 GeoTIFF 文件的选项。

JSON 表示法
{
  "cloudOptimized": boolean,
  "tileDimensions": {
    object (GridDimensions)
  },
  "skipEmptyFiles": boolean,
  "tileSize": integer,
  "noData": {
    object (Number)
  }
}
字段
cloudOptimized

boolean

如果为 true,则生成“针对云优化的”GeoTIFF 文件,以便在云环境中更高效地访问(请参阅 www.cogeo.org)。

tileDimensions

object (GridDimensions)

可选的明确尺寸(以像素为单位),用于将图片拆分成多个文件(如果图片太大而无法放入单个文件中)。此值必须设置为功能块大小的倍数,默认值为 256。

skipEmptyFiles

boolean

如果为 true,则跳过写入空(即完全遮盖)图片文件。

tileSize

integer

可选。用于设置输出图块大小的可选参数。此参数是中间输出图块的边长(以像素为单位)。默认功能块大小为 256,对应于 256x256 的功能块。

noData

object (Number)

可选。可选的“无数据”值。目前仅支持 noData.float_value

数字

数字。

JSON 表示法
{

  // Union field value can be only one of the following:
  "floatValue": number,
  "integerValue": string
  // End of list of possible types for union field value.
}
字段
联合字段 value。值。value 只能是下列其中一项:
floatValue

number

双精度浮点值。

integerValue

string (int64 format)

一个 64 位整数值。

TfRecordImageExportOptions

用于将图片编码为 TFRecord 文件的选项。

JSON 表示法
{
  "tileDimensions": {
    object (GridDimensions)
  },
  "marginDimensions": {
    object (GridDimensions)
  },
  "compress": boolean,
  "maxSizeBytes": string,
  "defaultValue": number,
  "tensorDepths": {
    string: integer,
    ...
  },
  "sequenceData": boolean,
  "collapseBands": boolean,
  "maxMaskedRatio": number
}
字段
tileDimensions

object (GridDimensions)

在导出区域内平铺的尺寸,会将边界框中的每个像素完全覆盖一次(除非补丁尺寸无法均匀划分边界框,在这种情况下,系统会舍弃沿最大 x/y 边缘的边界图块)。尺寸必须大于 0。

marginDimensions

object (GridDimensions)

如果指定,功能块将在正负方向上由边距尺寸缓冲,导致相邻补丁之间出现重叠。

compress

boolean

如果为 true,则使用 gzip 压缩 .tfrecord 文件并附加“.gz”后缀。

maxSizeBytes

string (Int64Value format)

导出的 .tfrecord 的大小上限(压缩前,以字节为单位)。文件越小,分片越多(因此输出文件也越多)。默认为 1GiB。

defaultValue

number

部分或完全被遮盖的像素的每个波段中设置的值,以及由数组波段(源像素的数组长度小于地图项值的深度)构成的输出 3D 地图项中的每个值设置的值。对于整数类型的频段,系统会舍弃小数部分,并将其限制在频段类型的范围内。默认值为 0。

tensorDepths

map (key: string, value: integer)

将输入数组波段的名称映射到它们创建的 3D 张量的深度。系统会截断数组,或使用默认值对其进行填充,以适应指定的形状。对于每个阵列频段,此字段都必须有相应的条目。

包含一系列 "key": value 对的对象。示例:{ "name": "wrench", "mass": "1.3kg", "count": "3" }

sequenceData

boolean

如果为 true,则每个像素都会作为 SequenceExample 输出,将标量波段映射到上下文,将数组波段映射到示例的序列。SequenceExample 按每个补丁中的像素行主序输出,然后按文件序列中的区域补丁行主序输出。

collapseBands

boolean

如果为 true,则所有波段都将合并到单个 3D 张量中,并采用图像中第一个波段的名称。所有频段都会依次提升为字节、int64 和浮点数,具体取决于所有频段中相应序列最远的类型。只要指定了 tensorDepths,就可以使用数组带。

maxMaskedRatio

number

补丁中允许的最大遮盖像素比例。超出此许可的补丁将被舍弃,而不是写入文件。如果将此字段设置为除 1 以外的值,系统将不会生成 JSON 边车。默认为 1。