Earth Engine, paylaşılan bilgi işlem kaynaklarını korumak ve herkes için güvenilir performans sağlamak amacıyla
ticari olmayan kota katmanlarını kullanıma sunuyor. Ticari olmayan tüm projelerin
27 Nisan 2026'ya kadar bir kota katmanı seçmesi gerekir. Aksi takdirde varsayılan olarak Topluluk Katmanı kullanılır. Katman kotaları,
27 Nisan 2026'dan itibaren tüm projeler için (katman seçim tarihinden bağımsız olarak) geçerli olacaktır.
Daha fazla bilgi edinin.
ee.FeatureCollection.map
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir koleksiyon üzerinde algoritma eşler.
Eşlenmiş koleksiyonu döndürür.
| Kullanım | İadeler |
|---|
FeatureCollection.map(algorithm, dropNulls) | Koleksiyon |
| Bağımsız Değişken | Tür | Ayrıntılar |
|---|
bu: collection | Koleksiyon | Collection örneği. |
algorithm | İşlev | Koleksiyonun resimlerini veya özelliklerini eşleme işlemi. Bir resim veya özellik alıp döndüren bir JavaScript işlevi. İşlev yalnızca bir kez çağrılır ve sonuç açıklama olarak yakalanır. Bu nedenle, zorunlu işlemler gerçekleştiremez veya harici duruma bağlı olamaz. |
dropNulls | Boole değeri, isteğe bağlı | Doğruysa eşlenen algoritmanın null değerler döndürmesine izin verilir ve null değer döndürdüğü öğeler bırakılır. |
Örnekler
Kod Düzenleyici (JavaScript)
// FeatureCollection of power plants in Belgium.
var fc = ee.FeatureCollection('WRI/GPPD/power_plants')
.filter('country_lg == "Belgium"');
// Function to convert power plant capacity from megawatts to gigawatts and
// add the value as a new feature property.
var mwToGw = function(feature) {
var megawatt = feature.getNumber('capacitymw');
var gigawatt = megawatt.divide(1000);
return feature.set('capacitygw', gigawatt);
};
// Apply the function to each feature in the collection.
fc = fc.map(mwToGw);
print('Note the new "capacitygw" property in each feature', fc);
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"')
# Function to convert power plant capacity from megawatts to gigawatts and
# add the value as a new feature property.
def mw_to_gw(feature):
megawatt = feature.getNumber('capacitymw')
gigawatt = megawatt.divide(1000)
return feature.set('capacitygw', gigawatt)
# Apply the function to each feature in the collection.
fc = fc.map(mw_to_gw)
display('Note the new "capacitygw" property in each feature:', fc)
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-10-30 UTC.
[null,null,["Son güncelleme tarihi: 2025-10-30 UTC."],[],["The `map` algorithm applies a user-defined function to each element within a collection (e.g., features or images). This function, which accepts an element as input and returns a modified one, is applied to each item of the collection. The `dropNulls` argument allows filtering null return values. The result is a new collection containing the modified elements. For example, converting power plant capacity units and adding them as a new property to the features.\n"]]