ee.FeatureCollection.toList
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחזירה את הרכיבים של אוסף כרשימה.
שימוש | החזרות |
---|
FeatureCollection.toList(count, offset) | רשימה |
ארגומנט | סוג | פרטים |
---|
זה: collection | FeatureCollection | אוסף הקלט לאחזור. |
count | מספר שלם | המספר המקסימלי של רכיבים לאחזור. |
offset | מספר שלם, ברירת מחדל: 0 | מספר הרכיבים שצריך להשליך מההתחלה. אם המאפיין מוגדר, יאוחזרו (offset + count) רכיבים והרכיבים הראשונים של offset יימחקו. |
דוגמאות
עורך הקוד (JavaScript)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
print('First 5 features to an ee.List', fc.toList(5));
print('Second 5 features to an ee.List', fc.toList(5, 5));
הגדרת Python
מידע על Python API ועל שימוש ב-geemap
לפיתוח אינטראקטיבי מופיע בדף
Python Environment.
import ee
import geemap.core as geemap
Colab (Python)
# FeatureCollection of power plants in Belgium.
fc = ee.FeatureCollection('WRI/GPPD/power_plants').filter(
'country_lg == "Belgium"')
print('First 5 features to an ee.List:', fc.toList(5).getInfo())
print('Second 5 features to an ee.List:', fc.toList(5, 5).getInfo())
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,[]]