הודעה : כל הפרויקטים הלא מסחריים שנרשמו לשימוש ב-Earth Engine לפני
15 באפריל 2025 חייבים
לאמת את הזכאות לשימוש לא מסחרי כדי לשמור על הגישה. אם לא תאמתו את החשבון עד 26 בספטמבר 2025, יכול להיות שהגישה שלכם תושעה.
שליחת משוב
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 API ועל שימוש ב-geemap
לפיתוח אינטראקטיבי מופיע בדף
Python Environment .
import ee
import geemap.core as geemap
Colab (Python)
from pprint import pprint
# A contrived, empty image collection for simple demonstration.
col = ee . ImageCollection ([])
print ( 'Collection without properties:' )
pprint ( col . getInfo ())
# 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:' )
pprint ( col . getInfo ())
# Get a dictionary of collection property keys and values.
print ( 'Property keys and values (ee.Dictionary):' )
pprint ( col . toDictionary () . getInfo ())
# 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' ) . getInfo ())
# Get the value of a string collection property as an ee.String object.
print ( 'Project name (ee.String):' , col . getString ( 'project_name' ) . getInfo ())
# Get the value of a numeric collection property as an ee.Number object.
print ( 'Project year (ee.Number):' , col . getNumber ( 'project_year' ) . getInfo ())
# Get the value of an ee.Array collection property as an ee.Array object.
print ( 'Plot IDs (ee.Array):' , col . getArray ( 'plot_ids' ) . getInfo ())
שליחת משוב
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0 . לפרטים, ניתן לעיין במדיניות האתר Google Developers . Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
רוצה לתת לנו משוב?
[[["התוכן קל להבנה","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-07-26 (שעון UTC)."],[],[]]