公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
Export.table.toCloudStorage
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建批量任务,以将 FeatureCollection 作为表格导出到 Google Cloud Storage。您可以在“任务”标签页中开始任务。
用法 | 返回 |
---|
Export.table.toCloudStorage(collection, description, bucket, fileNamePrefix, fileFormat, selectors, maxVertices, priority) | |
参数 | 类型 | 详细信息 |
---|
collection | FeatureCollection | 要导出的要素集合。 |
description | 字符串,可选 | 任务的简明易懂的名称。默认为“myExportTableTask”。 |
bucket | 字符串,可选 | Cloud Storage 目标存储分区。 |
fileNamePrefix | 字符串,可选 | 用作输出前缀的字符串。末尾的“/”表示路径。默认为说明。 |
fileFormat | 字符串,可选 | 输出格式:“CSV”(默认)、“GeoJSON”“KML”“KMZ”“SHP”或“TFRecord”。 |
selectors | List<String>|String,可选 | 要包含在导出中的属性列表;可以是包含以英文逗号分隔的名称的单个字符串,也可以是字符串列表。 |
maxVertices | 数字,可选 | 每个几何图形的未切割顶点数量上限;顶点数量超过此上限的几何图形将被切割成小于此大小的块。 |
priority | 数字,可选 | 任务在项目中的优先级。优先级较高的任务会更早安排。必须是介于 0 到 9999 之间的整数。默认值为 100。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eExports a FeatureCollection to Google Cloud Storage in various formats like CSV, GeoJSON, KML, KMZ, SHP, or TFRecord.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of export with options for file name, description, property selection, and geometry simplification.\u003c/p\u003e\n"],["\u003cp\u003eTasks can be prioritized for scheduling and monitored through the Tasks tab within the platform.\u003c/p\u003e\n"],["\u003cp\u003eUsers can specify a Cloud Storage bucket and file name prefix to organize exported data.\u003c/p\u003e\n"]]],["This document outlines how to export a FeatureCollection as a table to Google Cloud Storage using a batch task. The `Export.table.toCloudStorage` function requires a `collection` and allows for optional parameters: `description` (task name), `bucket` (destination), `fileNamePrefix`, `fileFormat` (CSV, GeoJSON, etc.), `selectors` (properties to include), `maxVertices` (geometry limit), and `priority` (task scheduling). The function creates a task accessible from the Tasks tab.\n"],null,["# Export.table.toCloudStorage\n\n\u003cbr /\u003e\n\nCreates a batch task to export a FeatureCollection as a table to Google Cloud Storage. Tasks can be started from the Tasks tab.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `Export.table.toCloudStorage(collection, `*description* `, `*bucket* `, `*fileNamePrefix* `, `*fileFormat* `, `*selectors* `, `*maxVertices* `, `*priority*`)` | |\n\n| Argument | Type | Details |\n|------------------|----------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `collection` | FeatureCollection | The feature collection to export. |\n| `description` | String, optional | A human-readable name of the task. Defaults to \"myExportTableTask\". |\n| `bucket` | String, optional | The Cloud Storage destination bucket. |\n| `fileNamePrefix` | String, optional | The string used as the output's prefix. A trailing \"/\" indicates a path. Defaults to the description. |\n| `fileFormat` | String, optional | The output format: \"CSV\" (default), \"GeoJSON\", \"KML\", \"KMZ\", \"SHP\", or \"TFRecord\". |\n| `selectors` | List\\\u003cString\\\u003e\\|String, optional | A list of properties to include in the export; either a single string with comma-separated names or a list of strings. |\n| `maxVertices` | Number, optional | Max number of uncut vertices per geometry; geometries with more vertices will be cut into pieces smaller than this size. |\n| `priority` | Number, optional | The priority of the task within the project. Higher priority tasks are scheduled sooner. Must be an integer between 0 and 9999. Defaults to 100. |"]]