ঘোষণা :
15 এপ্রিল, 2025 এর আগে আর্থ ইঞ্জিন ব্যবহার করার জন্য নিবন্ধিত সমস্ত অবাণিজ্যিক প্রকল্পগুলিকে অবশ্যই আর্থ ইঞ্জিন অ্যাক্সেস বজায় রাখার জন্য
অ-বাণিজ্যিক যোগ্যতা যাচাই করতে হবে।
ee.data.updateAsset
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি সম্পদ আপডেট করে।
প্রমাণীকৃত ব্যবহারকারী অবশ্যই একজন লেখক বা সম্পদের মালিক হতে হবে।
ব্যবহার | রিটার্নস | ee.data.updateAsset(assetId, asset, updateFields, callback ) | অবজেক্ট |
যুক্তি | টাইপ | বিস্তারিত | assetId | স্ট্রিং | সম্পদের ID আপডেট করতে হবে। |
asset | api.EarthEngineAsset | সম্পদের আপডেট করা সংস্করণ, শুধুমাত্র আপডেট করা ক্ষেত্রগুলির নতুন মান রয়েছে। শুধুমাত্র "start_time", "end_time", এবং "properties" ক্ষেত্র আপডেট করা যাবে। যদি একটি মান "updateMask" এ নামকরণ করা হয়, কিন্তু "সম্পদ" এ সেট করা না থাকে, তাহলে সেই মানটি সম্পদ থেকে মুছে ফেলা হবে। |
updateFields | তালিকা<স্ট্রিং> | আপডেট করার জন্য ক্ষেত্রের নামের একটি তালিকা। এতে থাকতে পারে: সংশ্লিষ্ট টাইমস্ট্যাম্প আপডেট করার জন্য "start_time" বা "end_time", প্রদত্ত প্রপার্টি আপডেট করার জন্য "properties.PROPERTY_NAME", বা সমস্ত প্রপার্টি আপডেট করার জন্য "properties"। তালিকা খালি থাকলে, সমস্ত বৈশিষ্ট্য এবং উভয় টাইমস্ট্যাম্প আপডেট করা হবে। |
callback | ফাংশন, ঐচ্ছিক | একটি ঐচ্ছিক কলব্যাক। যদি সরবরাহ না করা হয়, কলটি সিঙ্ক্রোনাসভাবে করা হয়। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eUpdates specified fields or all properties and timestamps of an Earth Engine asset.\u003c/p\u003e\n"],["\u003cp\u003eRequires writer or owner authentication for the asset being updated.\u003c/p\u003e\n"],["\u003cp\u003eAllows updating start/end times and properties, with the option to delete values by specifying them in \u003ccode\u003eupdateFields\u003c/code\u003e but omitting them in \u003ccode\u003easset\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes the \u003ccode\u003eee.data.updateAsset\u003c/code\u003e function with asset ID, updated asset details, and optional fields to update and callback.\u003c/p\u003e\n"]]],["This function updates an existing asset, requiring the user to be a writer or owner. It accepts the `assetId`, an `asset` object containing new field values, and a list of `updateFields`. Updatable fields include \"start_time\", \"end_time\", and \"properties\". Specifying a field in `updateFields` but not in `asset` deletes it. An empty `updateFields` list updates all properties and timestamps. The function returns an object, with an optional callback for asynchronous operation.\n"],null,["# ee.data.updateAsset\n\n\u003cbr /\u003e\n\nUpdates an asset.\n\n\u003cbr /\u003e\n\nThe authenticated user must be a writer or owner of the asset.\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| `ee.data.updateAsset(assetId, asset, updateFields, `*callback*`)` | Object |\n\n| Argument | Type | Details |\n|----------------|----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `assetId` | String | The ID of the asset to update. |\n| `asset` | api.EarthEngineAsset | The updated version of the asset, containing only the new values of the fields to be updated. Only the \"start_time\", \"end_time\", and \"properties\" fields can be updated. If a value is named in \"updateMask\", but is unset in \"asset\", then that value will be deleted from the asset. |\n| `updateFields` | List\\\u003cString\\\u003e | A list of the field names to update. This may contain: \"start_time\" or \"end_time\" to update the corresponding timestamp, \"properties.PROPERTY_NAME\" to update a given property, or \"properties\" to update all properties. If the list is empty, all properties and both timestamps will be updated. |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]