تطرح Earth Engine
فئات حصص غير تجارية لحماية موارد الحوسبة المشترَكة وضمان أداء موثوق للجميع. يجب أن تختار جميع المشاريع غير التجارية فئة حصة بحلول
27 أبريل 2026 ، وإلا سيتم استخدام "فئة المجتمع" تلقائيًا. سيبدأ تطبيق حصص المستوى على جميع المشاريع (بغض النظر عن تاريخ اختيار المستوى) في
27 أبريل 2026 .
مزيد من المعلومات
إرسال ملاحظات
ee.ImageCollection.get
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
استخراج سمة من عنصر
الاستخدام المرتجعات ImageCollection. get (property)
الوسيطة النوع التفاصيل هذا: object العنصر الميزة التي سيتم استخراج السمة منها. propertyسلسلة السمة المطلوب استخراجها.
أمثلة
محرّر الرموز البرمجية (JavaScript)
// A contrived, empty image collection for simple demonstration.
var col = ee . ImageCollection ([]);
print ( 'Collection without properties' , col );
// Set collection properties using a dictionary.
col = col . set ({
project_name : 'biomass_tracking' ,
project_id : 3 ,
plot_ids : ee . Array ([ 7 , 11 , 20 ])
});
// Set collection properties using a series of key-value pairs.
col = col . set ( 'project_year' , 2018 ,
'rgb_vis' , 'false_color' );
print ( 'Collection with properties' , col );
// Get a dictionary of collection property keys and values.
print ( 'Property keys and values (ee.Dictionary)' , col . toDictionary ());
// Get the value of a collection property. To use the result of
// ee.ImageCollection.get in further computation, you need to cast it to the
// appropriate class, for example, ee.Number(result) or ee.String(result).
print ( 'Project ID (ambiguous object)' , col . get ( 'project_id' ));
// Get the value of a string collection property as an ee.String object.
print ( 'Project name (ee.String)' , col . getString ( 'project_name' ));
// Get the value of a numeric collection property as an ee.Number object.
print ( 'Project year (ee.Number)' , col . getNumber ( 'project_year' ));
// Get the value of an ee.Array collection property as an ee.Array object.
print ( 'Plot IDs (ee.Array)' , col . getArray ( 'plot_ids' ));
إعداد Python
راجِع صفحة
بيئة Python للحصول على معلومات حول واجهة برمجة التطبيقات Python واستخدام
geemap للتطوير التفاعلي.
import ee
import geemap.core as geemap
Colab (Python)
# A contrived, empty image collection for simple demonstration.
col = ee . ImageCollection ([])
display ( 'Collection without properties:' , col )
# Set collection properties using a dictionary.
col = col . set ({
'project_name' : 'biomass_tracking' ,
'project_id' : 3 ,
'plot_ids' : ee . Array ([ 7 , 11 , 20 ])
})
# Set collection properties using a series of key-value pairs.
col = col . set ( 'project_year' , 2018 ,
'rgb_vis' , 'false_color' )
display ( 'Collection with properties:' , col )
# Get a dictionary of collection property keys and values.
display ( 'Property keys and values (ee.Dictionary):' , col . toDictionary ())
# Get the value of a collection property. To use the result of
# ee.ImageCollection.get in further computation, you need to cast it to the
# appropriate class, for example, ee.Number(result) or ee.String(result).
display ( 'Project ID (ambiguous object):' , col . get ( 'project_id' ))
# Get the value of a string collection property as an ee.String object.
display ( 'Project name (ee.String):' , col . getString ( 'project_name' ))
# Get the value of a numeric collection property as an ee.Number object.
display ( 'Project year (ee.Number):' , col . getNumber ( 'project_year' ))
# Get the value of an ee.Array collection property as an ee.Array object.
display ( 'Plot IDs (ee.Array):' , col . getArray ( 'plot_ids' ))
إرسال ملاحظات
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0 . للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers . إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-10-30 (حسب التوقيت العالمي المتفَّق عليه)
هل تريد مشاركة ملاحظاتك معنا؟
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-10-30 (حسب التوقيت العالمي المتفَّق عليه)"],[],[]]