ee.data.copyAsset
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
دارایی را از sourceId در DestinationId کپی می کند.
استفاده | برمی گرداند | ee.data.copyAsset(sourceId, destinationId, overwrite , callback ) | |
استدلال | تایپ کنید | جزئیات | sourceId | رشته | شناسه دارایی برای کپی کردن. |
destinationId | رشته | شناسه دارایی جدید ایجاد شده با کپی کردن. |
overwrite | بولی، اختیاری | هر شناسه دارایی مقصد موجود را رونویسی کنید. |
callback | عملکرد، اختیاری | پاسخ به تماس اختیاری در صورت عدم ارائه، تماس به صورت همزمان انجام می شود. پاسخ تماس یک شی خالی و یک پیام خطا در صورت وجود ارسال می شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\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. |"]]