公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
Export.table.toBigQuery
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
创建用于将 FeatureCollection 导出到 BigQuery 的批处理任务。您可以在“任务”标签页中开始任务。
请注意,此功能处于预览版阶段,API 和行为可能会发生重大变化。如需了解详情,请参阅 https://developers.google.com/earth-engine/guides/export_to_bigquery
用法 | 返回 |
---|
Export.table.toBigQuery(collection, description, table, overwrite, append, selectors, maxVertices, priority) | |
参数 | 类型 | 详细信息 |
---|
collection | FeatureCollection | 要导出的要素集合。 |
description | 字符串,可选 | 任务的简明易懂的名称。默认为“myExportTableTask”。 |
table | 字符串,可选 | 完全限定的 BigQuery 目标表,格式如下:“project_id.dataset_id.table_id”。 |
overwrite | 布尔值,可选 | 是否应使用相应导出操作的结果覆盖现有表。默认值为 false。`overwrite` 和 `append` 参数不能同时为 `true`。如果表已存在,并且 `overwrite` 和 `append` 均为 `false`,则导出失败。 |
append | 布尔值,可选 | 如果表已存在且具有兼容的架构,是否应附加表数据。默认值为 false。`overwrite` 和 `append` 参数不能同时为 `true`。如果表已存在,并且 `overwrite` 和 `append` 均为 `false`,则导出失败。 |
selectors | List<String>|String,可选 | 要包含在导出中的属性列表;可以是包含以英文逗号分隔的名称的单个字符串,也可以是字符串列表。 |
maxVertices | 数字,可选 | 每个几何图形的未切割顶点数量上限;顶点数量超过此上限的几何图形将被切割成小于此大小的块。 |
priority | 数字,可选 | 任务在项目中的优先级。优先级较高的任务会更早安排。必须是介于 0 到 9999 之间的整数。默认值为 100。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eExports a FeatureCollection to a BigQuery table using a batch task, accessible via the Tasks tab.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is currently in Preview, so the API and behavior are subject to change.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize export options, such as table name, overwriting or appending data, selecting properties, and setting task priority.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided link for detailed information and guidance on exporting to BigQuery.\u003c/p\u003e\n"]]],[],null,["# Export.table.toBigQuery\n\n\u003cbr /\u003e\n\nCreates a batch task to export a FeatureCollection to BigQuery. Tasks can be started from the Tasks tab.\n\n\u003cbr /\u003e\n\nNote that this feature is in Preview, and the API and behavior may change significantly. For more information, see https://developers.google.com/earth-engine/guides/export_to_bigquery\n\n| Usage | Returns |\n|--------------------------------------------------------------------------------------------------------------------------------------------------|---------|\n| `Export.table.toBigQuery(collection, `*description* `, `*table* `, `*overwrite* `, `*append* `, `*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| `table` | String, optional | The fully-qualifed BigQuery destination table in the following format: \"project_id.dataset_id.table_id\". |\n| `overwrite` | Boolean, optional | Whether the existing table should be overwritten by the result of this export. Defaults to false. The \\`overwrite\\` and \\`append\\` parameters cannot be \\`true\\` simultaneously. The export fails if the table already exists and both \\`overwrite\\` and \\`append\\` are \\`false\\`. |\n| `append` | Boolean, optional | Whether table data should be appended if the table already exists and has a compatible schema. Defaults to false. The \\`overwrite\\` and \\`append\\` parameters cannot be \\`true\\` simultaneously. The export fails if the table already exists and both \\`overwrite\\` and \\`append\\` are \\`false\\`. |\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. |"]]