公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.listBuckets
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
返回 Cloud 项目或用户的顶级资产和文件夹。将项目字段留空即可使用当前项目。
用法 | 返回 |
---|
ee.data.listBuckets(project, callback) | api.ListAssetsResponse |
参数 | 类型 | 详细信息 |
---|
project | 字符串,可选 | 要查询的项目,例如“projects/my-project”。默认为当前项目。对于用户主文件夹,请使用“projects/earthengine-legacy”。 |
callback | 函数(可选) | 如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eReturns a list of top-level assets and folders within a specified Google Cloud project or the user's Earth Engine home folder.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.data.listBuckets\u003c/code\u003e function is used to retrieve this information, allowing optional specification of the project and a callback function.\u003c/p\u003e\n"],["\u003cp\u003eWhen querying a user's home folders, use \u003ccode\u003e"projects/earthengine-legacy"\u003c/code\u003e as the project ID.\u003c/p\u003e\n"]]],[],null,["# ee.data.listBuckets\n\n\u003cbr /\u003e\n\nReturns top-level assets and folders for the Cloud Project or user. Leave the project field blank to use the current project.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------|------------------------|\n| `ee.data.listBuckets(`*project* `, `*callback*`)` | api.ListAssetsResponse |\n\n| Argument | Type | Details |\n|------------|--------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | String, optional | Project to query, e.g. \"projects/my-project\". Defaults to current project. Use \"projects/earthengine-legacy\" for user home folders. |\n| `callback` | Function, optional | If not supplied, the call is made synchronously. |"]]