公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.getTableDownloadId
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
获取下载 ID。
返回下载 ID 和令牌,如果指定了回调,则返回 null。
用法 | 返回 |
---|
ee.data.getTableDownloadId(params, callback) | DownloadId |
参数 | 类型 | 详细信息 |
---|
params | 对象 | 一个包含表格下载选项的对象,可取以下值:
table: 要下载的功能集合。 |
format: 下载格式,可以是 CSV、JSON、KML、KMZ 或 TF_RECORD。 |
selectors: 可用于确定将下载哪些属性的选择器字符串列表。 |
filename: 将下载的文件的名称。 |
|
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis function retrieves a download ID and token for initiating a table download.\u003c/p\u003e\n"],["\u003cp\u003eUsers need to provide parameters including table, format, selectors, and filename for the download.\u003c/p\u003e\n"],["\u003cp\u003eAn optional callback function can be included for asynchronous execution; otherwise, the call is synchronous.\u003c/p\u003e\n"]]],[],null,["# ee.data.getTableDownloadId\n\n\u003cbr /\u003e\n\nGet a download ID.\n\n\u003cbr /\u003e\n\nReturns a download id and token, or null if a callback is specified.\n\n| Usage | Returns |\n|----------------------------------------------------|------------|\n| `ee.data.getTableDownloadId(params, `*callback*`)` | DownloadId |\n\n| Argument | Type | Details |\n|------------|--------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | Object | An object containing table download options with the following possible values: |----------------------------------------------------------------------------------------------------------------| | ` table: ` The feature collection to download. | | ` format: ` The download format, CSV, JSON, KML, KMZ or TF_RECORD. | | ` selectors: ` List of strings of selectors that can be used to determine which attributes will be downloaded. | | ` filename: ` The name of the file that will be downloaded. | |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]