ee.FeatureCollection.first

מחזירה את הרשומה הראשונה מאוסף נתון.

שימושהחזרות
FeatureCollection.first()רכיב
ארגומנטסוגפרטים
זה: collectionFeatureCollectionהאוסף שממנו בוחרים את הרשומה הראשונה.

דוגמאות

עורך הקוד (JavaScript)

// A global power plant FeatureCollection.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants');

print('The first feature (power plant) in the collection', fc.first());

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

from pprint import pprint

# A global power plant FeatureCollection.
fc = ee.FeatureCollection('WRI/GPPD/power_plants')

print('The first feature (power plant) in the collection:')
pprint(fc.first().getInfo())