Duyuru :
15 Nisan 2025 'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin erişimlerini sürdürebilmeleri için
ticari olmayan uygunluklarını doğrulamaları gerekir. 26 Eylül 2025'e kadar doğrulama yapmazsanız erişiminiz bekletilebilir.
Geri bildirim gönderin
ee.FeatureCollection.set
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Bir öğenin bir veya daha fazla meta veri özelliğini geçersiz kılar.
Belirtilen özelliklerin geçersiz kılındığı öğeyi döndürür.
Kullanım İadeler FeatureCollection. set (var_args)Öğe
Bağımsız Değişken Tür Ayrıntılar bu: element Öğe Element örneği. var_argsVarArgs<Object> Özelliklerin sözlüğü veya özelliklerin vararg dizisi (ör. key1, value1, key2, value2, ...)
Örnekler
Kod Düzenleyici (JavaScript)
// An empty FeatureCollection for simple demonstration.
var fc = ee . FeatureCollection ([]);
// Set a single new property using a key-value pair.
fc = fc . set ( 'key_1' , 'value 1' );
// Set multiple new properties using a series of key-value pairs.
fc = fc . set ( 'key_2' , 'value 2' ,
'key_3' , 3 );
// Set new properties using a dictionary of key-value pairs.
fc = fc . set ({
key_5 : ee . Array ([ 1 , 2 , 3 ]),
key_6 : ee . Image ( 0 ),
key_7 : ee . Feature ( null )
});
print ( 'New FeatureCollection properties added' , fc );
// Overwrite an existing property.
fc = fc . set ( 'key_1' , 'overwritten' );
print ( 'FeatureCollection property overwritten' , 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)
from pprint import pprint
# An empty FeatureCollection for simple demonstration.
fc = ee . FeatureCollection ([])
# Set a single new property using a key-value pair.
fc = fc . set ( 'key_1' , 'value 1' )
# Set multiple new properties using a series of key-value pairs.
fc = fc . set ( 'key_2' , 'value 2' , 'key_3' , 3 )
# Set new properties using a dictionary of key-value pairs.
fc = fc . set ({
'key_5' : ee . Array ([ 1 , 2 , 3 ]),
'key_6' : ee . Image ( 0 ),
'key_7' : ee . Feature ( None )
})
print ( 'New FeatureCollection properties added:' )
pprint ( fc . getInfo ())
# Overwrite an existing property.
fc = fc . set ( 'key_1' , 'overwritten' )
print ( 'FeatureCollection property overwritten:' )
pprint ( fc . getInfo ())
Geri bildirim gönderin
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-07-25 UTC.
Bize geri bildirimde bulunmak mı istiyorsunuz?
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[],[]]