公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
Export.video.toCloudStorage
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建一个批处理任务,用于将 ImageCollection 作为视频导出到 Google Cloud Storage。集合必须仅包含 RGB 图片。您可以在“任务”标签页中开始任务。“crsTransform”“scale”和“dimensions”是互斥的。
用法 | 返回 |
---|
Export.video.toCloudStorage(collection, description, bucket, fileNamePrefix, framesPerSecond, dimensions, region, scale, crs, crsTransform, maxPixels, maxFrames, priority) | |
参数 | 类型 | 详细信息 |
---|
collection | ImageCollection | 要导出的图片集合。 |
description | 字符串,可选 | 任务的简明易懂的名称。默认为“myExportVideoTask”。 |
bucket | 字符串,可选 | Cloud Storage 目标存储分区。 |
fileNamePrefix | 字符串,可选 | 用作输出前缀的字符串。末尾的“/”表示路径。默认为说明。 |
framesPerSecond | 数字,可选 | 导出视频的帧速率。必须是一个介于 0.1 到 100 之间的值。默认为 1。 |
dimensions | Number|String,可选 | 要用于导出图片的尺寸。接受单个正整数作为最大维度,或接受“WIDTHxHEIGHT”(其中 WIDTH 和 HEIGHT 均为正整数)。 |
region | Geometry.LinearRing|Geometry.Polygon|String,可选 | 要导出的区域,以 LinearRing、Polygon 或坐标表示。这些值可以指定为 Geometry 对象或序列化为字符串的坐标。 |
scale | 数字,可选 | 分辨率(以每像素多少米为单位)。 |
crs | 字符串,可选 | 要用于导出图片的 CRS。默认为 Google 地图墨卡托投影,即 SR-ORG:6627。 |
crsTransform | 字符串,可选 | 用于导出图像的仿射转换。需要定义“crs”。 |
maxPixels | 数字,可选 | 限制导出中的像素数量。默认情况下,如果导出像素数超过 1 亿,您会看到一条错误消息。明确设置此值可提高或降低此限制。 |
maxFrames | 数字,可选 | 设置要导出的帧数上限。默认情况下,最多可以导出 1000 帧。通过明确设置此值,您可以提高或降低此限制。 |
priority | 数字,可选 | 任务在项目中的优先级。优先级较高的任务会更早安排。必须是介于 0 到 9999 之间的整数。默认值为 100。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[],["This function exports an ImageCollection as a video to Google Cloud Storage. It requires an RGB ImageCollection and starts as a batch task. Key actions involve specifying the `collection`, destination `bucket`, `fileNamePrefix`, and `framesPerSecond`. Optional parameters include `dimensions`, `region`, `scale`, `crs`, `crsTransform`, `maxPixels`, `maxFrames`, and `priority`. The parameters `crsTransform`, `scale`, and `dimensions` are mutually exclusive, with default values and limitations for several arguments.\n"],null,[]]