ee.FeatureCollection.getString

Bir özelliği bir öğeden çıkarma.

Kullanımİadeler
FeatureCollection.getString(property)Dize
Bağımsız DeğişkenTürAyrıntılar
bu: objectÖğeÖzelliğin ayıklanacağı öğe.
propertyDizeAyıklanacak özellik.

Örnekler

Kod Düzenleyici (JavaScript)

// A FeatureCollection with a string property value.
var fc = ee.FeatureCollection([]).set('string_property', 'Abies magnifica');

// Fetch the string property value as an ee.String object.
print('String property value as ee.String', fc.getString('string_property'));

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)

# A FeatureCollection with a string property value.
fc = ee.FeatureCollection([]).set('string_property', 'Abies magnifica')

# Fetch the string property value as an ee.String object.
print('String property value as ee.String:',
      fc.getString('string_property').getInfo())