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 للحصول على معلومات حول واجهة برمجة التطبيقات Python واستخدام geemap للتطوير التفاعلي.

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())