ee.data.copyAsset
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הנכס מועתק מ-sourceId אל destinationId.
שימוש | החזרות |
---|
ee.data.copyAsset(sourceId, destinationId, overwrite, callback) | |
ארגומנט | סוג | פרטים |
---|
sourceId | מחרוזת | המזהה של הנכס שרוצים להעתיק. |
destinationId | מחרוזת | המזהה של הנכס החדש שנוצר מההעתקה. |
overwrite | בוליאני, אופציונלי | החלפת מזהה נכס קיים ביעד. |
callback | פונקציה, אופציונלי | קריאה חוזרת אופציונלית. אם לא מספקים את הערך הזה, השיחה מתבצעת באופן סינכרוני. הקריאה החוזרת מקבלת אובייקט ריק והודעת שגיאה, אם יש כזו. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\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. |"]]