ee.FeatureCollection.getString

Estrai una proprietà da una funzionalità.

UtilizzoResi
FeatureCollection.getString(property)Stringa
ArgomentoTipoDettagli
questo: objectElementoLa funzionalità da cui estrarre la proprietà.
propertyStringaLa proprietà da estrarre.

Esempi

Editor di codice (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'));

Configurazione di Python

Consulta la pagina Ambiente Python per informazioni sull'API Python e sull'utilizzo di geemap per lo sviluppo interattivo.

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