公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.copyAsset
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
将资源从 sourceId 复制到 destinationId。
用法 | 返回 |
---|
ee.data.copyAsset(sourceId, destinationId, overwrite, callback) | |
参数 | 类型 | 详细信息 |
---|
sourceId | 字符串 | 要复制的素材资源的 ID。 |
destinationId | 字符串 | 通过复制创建的新素材资源的 ID。 |
overwrite | 布尔值,可选 | 覆盖任何现有的目标素材资源 ID。 |
callback | 函数(可选) | 可选的回调。如果未提供,则以同步方式进行调用。系统会向回调传递一个空对象和一条错误消息(如果有)。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eCopies an Earth Engine asset from a source ID to a new destination ID.\u003c/p\u003e\n"],["\u003cp\u003eAllows overwriting of an existing asset at the destination ID if specified.\u003c/p\u003e\n"],["\u003cp\u003eOptionally utilizes a callback function for asynchronous execution or runs synchronously by default.\u003c/p\u003e\n"],["\u003cp\u003eRequires providing the source asset ID and the desired destination asset ID.\u003c/p\u003e\n"]]],[],null,["# ee.data.copyAsset\n\n\u003cbr /\u003e\n\nCopies the asset from sourceId into destinationId.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------------------------------------|---------|\n| `ee.data.copyAsset(sourceId, destinationId, `*overwrite* `, `*callback*`)` | |\n\n| Argument | Type | Details |\n|-----------------|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------|\n| `sourceId` | String | The ID of the asset to copy. |\n| `destinationId` | String | The ID of the new asset created by copying. |\n| `overwrite` | Boolean, optional | Overwrite any existing destination asset ID. |\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. |"]]