公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.getAsset
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
加载指定资产 ID 的资产的相关信息。
返回值调用结果,如果指定了回调,则返回 null。
用法 | 返回 |
---|
ee.data.getAsset(id, callback) | 对象 |
参数 | 类型 | 详细信息 |
---|
id | 字符串 | 要检索的资产。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eee.data.getAsset()\u003c/code\u003e loads information for an Earth Engine asset using its ID.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns asset details as an object or nothing if a callback function is provided.\u003c/p\u003e\n"],["\u003cp\u003eAn optional callback function can be used for asynchronous execution, otherwise, the call is synchronous.\u003c/p\u003e\n"]]],[],null,["# ee.data.getAsset\n\n\u003cbr /\u003e\n\nLoad info for an asset, given an asset id.\n\n\u003cbr /\u003e\n\nReturns the value call results, or null if a callback is specified.\n\n| Usage | Returns |\n|--------------------------------------|---------|\n| `ee.data.getAsset(id, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|------------|--------------------|------------------------------------------------------------------------|\n| `id` | String | The asset to be retrieved. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]