公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.renameAsset
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将素材资源从 sourceId 重命名为 destinationId。
用法 | 返回 |
---|
ee.data.renameAsset(sourceId, destinationId, callback) | |
参数 | 类型 | 详细信息 |
---|
sourceId | 字符串 | 要重命名的素材资源的 ID。 |
destinationId | 字符串 | 素材资源的新 ID。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。系统会向回调传递一个空对象和一条错误消息(如果有)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eRenames Earth Engine assets from their original ID to a new, specified ID.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.renameAsset()\u003c/code\u003e function, requiring the source asset ID and the desired destination ID.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, a callback function can be included for asynchronous execution and error handling.\u003c/p\u003e\n"]]],[],null,["# ee.data.renameAsset\n\n\u003cbr /\u003e\n\nRenames the asset from sourceId to destinationId.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------------------------------------|---------|\n| `ee.data.renameAsset(sourceId, destinationId, `*callback*`)` | |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `sourceId` | String | The ID of the asset to rename. |\n| `destinationId` | String | The new ID of the asset. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. The callback is passed an empty object and an error message, if any. |"]]