ee.data.createAsset
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह JSON वैल्यू से ऐसेट बनाता है. खाली इमेज कलेक्शन या फ़ोल्डर बनाने के लिए, "value" ऑब्जेक्ट में "type" कुंजी पास करें. इसकी वैल्यू ee.data.AssetType.* में से कोई एक होनी चाहिए जैसे, "ImageCollection" या "Folder".
यह फ़ंक्शन, सेव की गई ऐसेट का ब्यौरा दिखाता है. इसमें जनरेट किया गया आईडी भी शामिल होता है. अगर कॉलबैक तय किया गया है, तो यह फ़ंक्शन शून्य दिखाता है.
इस्तेमाल | रिटर्न |
---|
ee.data.createAsset(value, path, force, properties, callback) | ऑब्जेक्ट |
आर्ग्यूमेंट | टाइप | विवरण |
---|
value | ऑब्जेक्ट | बनाई जाने वाली ऐसेट की जानकारी देने वाला ऑब्जेक्ट. |
path | स्ट्रिंग, ज़रूरी नहीं | यह एक वैकल्पिक आईडी होता है. इसमें पूरा पाथ शामिल होता है. |
force | बूलियन, ज़रूरी नहीं | ज़बरदस्ती ओवरराइट करें. |
properties | ऑब्जेक्ट, ज़रूरी नहीं है | सेट की जाने वाली प्रॉपर्टी की कुंजियां और वैल्यू |
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\u003eGenerates an Earth Engine asset from a JSON object, enabling the creation of image collections, folders, or other asset types.\u003c/p\u003e\n"],["\u003cp\u003eAllows specification of an asset ID, optional overwriting, and custom properties during asset creation.\u003c/p\u003e\n"],["\u003cp\u003eReturns asset details including a generated ID or utilizes a callback function for asynchronous operations.\u003c/p\u003e\n"],["\u003cp\u003eSupports creating empty image collections and folders by providing a JSON value with the specific "type" key.\u003c/p\u003e\n"]]],["The function `ee.data.createAsset` creates an asset from a JSON value. It accepts a `value` object describing the asset and an optional `path` for the asset ID. The `force` argument allows overwriting, and `properties` sets asset metadata. A `callback` enables asynchronous operation. Without a callback, it returns an object describing the asset, including the ID. An empty image collection or folder can be created by using the values from ee.data.AssetType.\n"],null,["# ee.data.createAsset\n\n\u003cbr /\u003e\n\nCreates an asset from a JSON value. To create an empty image collection or folder, pass in a \"value\" object with a \"type\" key whose value is one of ee.data.AssetType.\\* (i.e. \"ImageCollection\" or \"Folder\").\n\n\u003cbr /\u003e\n\nReturns a description of the saved asset, including a generated ID, or null if a callback is specified.\n\n| Usage | Returns |\n|------------------------------------------------------------------------------------|---------|\n| `ee.data.createAsset(value, `*path* `, `*force* `, `*properties* `, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|--------------|--------------------|------------------------------------------------------------------------|\n| `value` | Object | An object describing the asset to create. |\n| `path` | String, optional | An optional desired ID, including full path. |\n| `force` | Boolean, optional | Force overwrite. |\n| `properties` | Object, optional | The keys and values of the properties to set |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]