ee.FeatureCollection.getString

Wyodrębnij właściwość z obiektu.

WykorzystanieZwroty
FeatureCollection.getString(property)Ciąg znaków
ArgumentTypSzczegóły
to: objectElementObiekt, z którego ma zostać wyodrębniona właściwość.
propertyCiąg znakówWłaściwość do wyodrębnienia.

Przykłady

Edytor kodu (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'));

Konfiguracja Pythona

Informacje o interfejsie Python API i używaniu geemap do interaktywnego programowania znajdziesz na stronie Środowisko Python.

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