ee.FeatureCollection.aggregate_first

Bir koleksiyondaki nesnelerin belirli bir özelliğini toplar ve koleksiyondaki ilk nesnenin özellik değerini hesaplar.

Kullanımİadeler
FeatureCollection.aggregate_first(property)
Bağımsız DeğişkenTürAyrıntılar
bu: collectionFeatureCollectionÜzerinde toplama işlemi yapılacak koleksiyon.
propertyDizeKoleksiyonun her öğesinden kullanılacak özellik.

Örnekler

Kod Düzenleyici (JavaScript)

// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
             .filter('country_lg == "Belgium"');

print('Fuel source for first power plant in the collection',
      fc.aggregate_first('fuel1'));  // Wind

Python kurulumu

Python API'si ve etkileşimli geliştirme için geemap kullanımı hakkında bilgi edinmek üzere Python Ortamı sayfasına bakın.

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('Fuel source for first power plant in the collection:',
      fc.aggregate_first('fuel1').getInfo())  # Wind