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 और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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. |"]]